Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Codespar MCP

MCP server by codespar Verified · npm:@codespar

Gives AI assistants commerce tools for Latin America, covering payments, invoicing, shipping, messaging and ERP through CodeSpar meta-tools. Aimed at developers building agentic commerce with Pix, NF-e and WhatsApp.

  • Score 78
  • 2 stars
  • 381 a week
  • MIT
  • Updated

Install Codespar MCP

Built from the published package, never by AI.

claude mcp add codespar-mcp -- npx -y @codespar/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Codespar MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the codespar-mcp block.

About

The CodeSpar MCP server connects AI assistants to CodeSpar's commerce infrastructure. The source describes @codespar/mcp as an MCP transport for Claude Desktop, Cursor and VS Code. The server exposes meta-tools for buy-side spending, sell-side sales, and shared infrastructure such as a double-entry ledger and provider discovery. The router picks a provider for each call based on the tenant's connections and cost and latency data.

Setup uses a CodeSpar API key and a session created with the SDK. The Brazilian preset covers Pix charges, NF-e issuance, shipping labels, WhatsApp messaging and Omie ERP. Buy-side spending runs under signed mandates that back a multi-currency wallet. The project is aimed at developers and businesses building agent-driven commerce in Latin America.

Written from the project's README and checked against it.

Tools it gives your assistant

  • codespar_shopSearches and buys from real stores with an async checkout session.
  • codespar_walletShows the agent's governed funds: balance, statement and top-up.
  • codespar_paySends outbound spend from the wallet the agent governs.
  • codespar_chargeCreates inbound charges so a buyer can pay.
  • codespar_checkoutAssembles a cart and dispatches it as a charge with a hosted payment page.
  • codespar_invoiceIssues fiscal documents, with NFS-e as the default and NF-e, CFDI and Factura AR also listed.
  • codespar_shipQuotes, labels and tracks shipments.
  • codespar_notifySends messages via WhatsApp, SMS and email.
  • codespar_kycVerifies counterparties before money moves.
  • codespar_ledgerRecords double-entry books and signed agentic receipts.

What you need

  • CodeSpar API key
  • npm to install the SDK and MCP packages
  • Claude Desktop, Cursor or VS Code

Try asking

  • Charge R$150 via Pix and issue the NF-e
  • Ship a label to a customer address in Brazil
  • Send a WhatsApp message saying the order was received

Good to know

  • codespar_crypto_pay is testnet only today.
  • The ledger routes to a self-hosted Midaz instance.
  • Some governance and enterprise features are described as part of CodeSpar Enterprise.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Codespar MCP

All alternatives →

Compare with Spree Commerce: open-source B2B and marketplace ecommerce, Spree Commerce developer docs for AI agents or Crossly

Codespar MCP: common questions

Which AI assistants does the CodeSpar MCP server work with?

The source names Claude Desktop, Cursor and VS Code for the @codespar/mcp transport. Other frameworks are covered by separate adapter packages.

Does CodeSpar support Pix payments?

Yes. The source says Pix is a first-class rail, and the quick start shows a Pix charge through codespar_charge.

Can the agent spend real crypto?

The source says codespar_crypto_pay handles on-chain spend and cross-border ramps, but it is testnet only today.

How do I install Codespar MCP?

In Claude Code run claude mcp add codespar-mcp -- npx -y @codespar/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Codespar MCP the official server?

Codespar MCP is published by npm:@codespar from its verified domain in the official MCP Registry.

Is Codespar MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Codespar MCP safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Codespar MCP?

Similar MCP servers: Spree Commerce: open-source B2B and marketplace ecommerce, Spree Commerce developer docs for AI agents, Crossly, Dev MCP.

Does Codespar MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Codespar MCP Install

Add to stack

Loading.