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.
Install Codespar MCP
Built from the published package, never by AI.
claude mcp add codespar-mcp -- npx -y @codespar/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"codespar-mcp": {
"args": [
"-y",
"@codespar/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"codespar-mcp": {
"args": [
"-y",
"@codespar/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"codespar-mcp": {
"args": [
"-y",
"@codespar/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add codespar-mcp -- npx -y @codespar/mcp{
"mcpServers": {
"codespar-mcp": {
"args": [
"-y",
"@codespar/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add codespar-mcp npx -y @codespar/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Spree is an open-source headless commerce platform for B2B, wholesale and multi-vendor marketplace stores. Its built-in MCP server lets Claude, ChatGPT, Cursor or any MCP client manage a store in natural language.
Spree Commerce provides developer docs and agent skills that help AI coding agents build headless ecommerce on its APIs. It also connects agents to a documentation MCP server so they can search the latest docs.
Crossly MCP servers give an AI agent the Crossly APIs as tools. The seller package runs a reselling account, and the buyer package manages a shopper's cart, orders, wishlists and offers.
A command line tool for setting up Shopify Dev MCP server
Lets an AI agent design, fill with real store data, render and publish pages for a Store Builder site. It runs as a local MCP stdio server with no manual clicking needed.
Shopping agent: compares Amazon, Walmart, eBay, Best Buy, Target, Shopify; buys only with your OK
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.
