Skip to main content
CO

Correios

v0.2.0-alpha.2API Keyalpha

Official Brazilian postal service. Package tracking, shipping rate calculation, CEP lookup, SEDEX, and PAC.

21 tools1 env varsπŸ‡§πŸ‡· Brazilalpha β€” pending validation

What your agent can do

Correios gives your agent 21 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • track_package β€” Track a package by Correios tracking code
  • track_bulk β€” Track multiple Correios packages in a single call (up to 50 codes)
  • calculate_shipping β€” Calculate shipping rates between two CEPs
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("track_package", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-correios@alpha

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "correios": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-correios@alpha"
      ],
      "env": {
        "CORREIOS_TOKEN": "<your_correios_token>"
      }
    }
  }
}

After restart, your agent can call any of the 21 tools below β€” try track_package first.

Environment variables Β· 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

CORREIOS_TOKEN
requiredsecret

API key for correios

Available tools Β· 21

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

WRITEtrack_package
Track a package by Correios tracking code
WRITEtrack_bulk
Track multiple Correios packages in a single call (up to 50 codes)
READcalculate_shipping
Calculate shipping rates between two CEPs
READget_delivery_time
Get estimated delivery time between two CEPs
READlist_services
List available Correios shipping services
READfind_cep
Look up address by CEP via Correios
READfind_cep_bulk
Batch address lookup for up to 20 CEPs in a single call
READlist_cep_ranges
List CEP ranges (faixas de CEP) served by a given shipping service

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-correios` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Correios β€” MCP server Β· 21 tools | CodeSpar