Correios

Developer tools

MCP server for Correios, package tracking, shipping rates, CEP lookup.

Your AI app calls the Correios MCP server, which does the developer tools work and sends the result back to the chat.

About Correios

Correios is a community MCP server from codespar, filed in our directory under developer tools. MCP server for Correios, package tracking, shipping rates, CEP lookup.

Correios runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-correios@0.2.0-alpha.3 and talks to it over standard input and output. It needs CORREIOS_TOKEN set before Correios starts.

Correios is listed in the official MCP registry as io.github.codespar/mcp-correios, version 0.2.0-alpha.3.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-correios
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-correios

How to set up Correios

  1. Install Node.js on the machine that runs your AI app, because Correios starts with npx and downloads its package on first run.
  2. Create CORREIOS_TOKEN for Correios in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Correios to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Correios tools to confirm the connection.
  5. Run one read-only task with Correios first, and keep your app asking before each tool call until the results look right.

Correios compared with similar servers

  • Persona by codespar has fewer GitHub stars than Correios (278 against 278); both are community servers, and both run locally.
  • Codespar C6 by codespar has fewer GitHub stars than Correios (278 against 278); both are community servers, and both run locally.
  • Ultra by RealMikeChong has fewer GitHub stars than Correios (278 against 278); both are community servers, and both run locally.

Before you connect Correios

  • Give Correios its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Correios tool call until you trust what it does with them.
  • Treat text that Correios fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Correios on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Correios

How marketing and sales teams put Correios to work, by company size. Pick the size closest to yours and start Correios on one use case.

Small business

  • A small business with a developer can use Correios to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Correios to explain and fix a marketing site issue without context switching between tools.
  • Correios runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Correios to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Correios to keep scripts and automations documented and versioned as they change.
  • Start Correios on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Correios with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Correios so web and marketing engineering share one reviewed way of working with AI.
  • Correios is a community server, so have security review the code and pin a version before Correios touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Correios README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-correios

Alpha release, published under the alpha npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during 0.x.x-alpha. Install with npm install <pkg>@alpha.

MCP server for Correios, Brazilian postal service tracking, rates, and shipping

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "correios": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-correios"],
      "env": {
        "CORREIOS_USER": "your-user",
        "CORREIOS_TOKEN": "your-token"
      }
    }
  }
}
Claude Code
claude mcp add correios -- npx @codespar/mcp-correios
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "correios": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-correios"],
      "env": {
        "CORREIOS_USER": "your-user",
        "CORREIOS_TOKEN": "your-token"
      }
    }
  }
}

Tools (21)

Tool Purpose
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
get_delivery_time Get estimated delivery time between two CEPs
list_services List available Correios shipping services
find_cep Look up address by CEP via Correios
find_cep_bulk Batch address lookup for up to 20 CEPs in a single call
list_cep_ranges List CEP ranges (faixas de CEP) served by a given shipping service
get_delivery_modality Get delivery modality (forma de entrega) for a CEP and service, whether delivery is domicile, agency picku...
create_prepost Create a pre-posting order for shipping
get_prepost Get a pre-posting order by ID
list_preposts List pre-posting orders with optional filters (date range, status)
cancel_prepost Cancel a pre-posting order
buy_label_range Request a range of SIGEP tracking labels (etiquetas) for a service
post_objects Close and post a list of pre-posted objects (fechar postagem SIGEP), creates a PLP
list_postal_codes Search addresses by street name or location (returns matching CEPs)
create_collection Schedule a package collection (pickup) from an address
get_collection Get collection request details by ID
cancel_collection Cancel a scheduled collection request
create_reverse Create a reverse logistics (return) order
get_reverse Get reverse logistics order details by ID

Authentication

Correios uses Basic Auth for token generation, then Bearer token for subsequent requests. The server automatically manages authentication.

Sandbox / Testing

Correios provides a homologation environment for testing. Contact Correios for homologation credentials.

Get your credentials
  1. Go to Correios CWS Portal
  2. Register for API access (requires a contract with Correios)
  3. Get your username and token
  4. Set the environment variables

Environment Variables

Variable Required Description
CORREIOS_USER Yes Correios API username
CORREIOS_TOKEN Yes Correios API token

Roadmap

v0.2 (planned)
  • list_postal_codes, List postal codes for a region
  • get_postal_code_range, Get postal code range for a city
  • create_collection, Schedule a package collection
  • get_collection, Get collection request details
  • create_reverse, Create a reverse logistics (return) request
v0.3 (planned)
  • batch_tracking, Track multiple packages in a single request
  • international_shipping, Calculate international shipping rates

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Correios

What is the Correios MCP server?

MCP server for Correios, package tracking, shipping rates, CEP lookup. Correios is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Correios MCP server?

Add Correios to your AI app's MCP config with the command npx -y @codespar/mcp-correios@0.2.0-alpha.3. In Claude Code, run claude mcp add --transport stdio codespar-correios -- npx -y @codespar/mcp-correios@0.2.0-alpha.3. To run Correios this way you need Node.js installed.

Does Correios need an API key?

Yes. Correios expects CORREIOS_TOKEN to be set. Create the key for Correios in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Correios an official MCP server?

No. Correios is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Correios access to company data.

What license is Correios under?

Correios is released under the MIT license, according to its GitHub repository. The license covers the code of Correios; the service it connects to has its own terms.