cdek-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cdek-mcpCalculate delivery tariff from Moscow to Saint Petersburg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cdek-mcp
MCP server for the CDEK delivery API (v2). 16 tools covering the full delivery lifecycle: tariff calculation, order management, shipment tracking, location search, courier pickup, barcode/receipt generation, and webhooks.
Tools (16)
Tariffs
Tool | Description |
| Calculate delivery cost and time for a specific tariff |
| Get all available tariffs with prices for a route |
Orders
Tool | Description |
| Create a delivery order with sender, recipient, packages |
| Get order details and status by UUID |
| Cancel/delete an order by UUID |
| Search/filter orders by date range, IM number, or CDEK waybill |
Tracking
Tool | Description |
| Track shipment by CDEK waybill number |
Locations
Tool | Description |
| Search city directory by name, postal code, or country |
| Search region directory by country or name |
| Find pickup points and parcel lockers by city or GPS coordinates |
Barcode & Print
Tool | Description |
| Generate barcode/label for an order |
| Generate receipt/waybill PDF for an order |
Courier Pickup
Tool | Description |
| Schedule a courier pickup for an order |
| Check courier pickup request status |
Webhooks
Tool | Description |
| Register webhook for order status updates or delivery photos |
| Remove a webhook subscription by UUID |
Related MCP server: Parcel MCP Server
Quick Start
Claude Desktop
~/.config/claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cdek": {
"command": "npx",
"args": ["-y", "@theyahia/cdek-mcp"],
"env": {
"CDEK_CLIENT_ID": "<YOUR_CLIENT_ID>",
"CDEK_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"CDEK_SANDBOX": "true"
}
}
}
}Cursor / Windsurf
.cursor/mcp.json or .windsurf/mcp.json:
{
"mcpServers": {
"cdek": {
"command": "npx",
"args": ["-y", "@theyahia/cdek-mcp"],
"env": {
"CDEK_CLIENT_ID": "<YOUR_CLIENT_ID>",
"CDEK_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"CDEK_SANDBOX": "true"
}
}
}
}VS Code (Copilot)
.vscode/mcp.json:
{
"servers": {
"cdek": {
"command": "npx",
"args": ["-y", "@theyahia/cdek-mcp"],
"env": {
"CDEK_CLIENT_ID": "<YOUR_CLIENT_ID>",
"CDEK_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"CDEK_SANDBOX": "true"
}
}
}
}Streamable HTTP Transport
For web deployments, use the --http flag or HTTP_PORT env var:
HTTP_PORT=3000 npx @theyahia/cdek-mcp --httpEndpoints:
POST /mcp— MCP JSON-RPCGET /mcp— SSE streamDELETE /mcp— session terminationGET /health— health check
Environment Variables
Variable | Required | Description |
| Yes | Client ID from CDEK dashboard |
| Yes | Client Secret from CDEK dashboard |
| No |
|
| No | Port for HTTP transport (enables HTTP mode) |
Get your API keys: CDEK Dashboard > Integration > API Keys.
Sandbox Mode
Set CDEK_SANDBOX=true to use the CDEK test environment (api.edu.cdek.ru). Production uses api.cdek.ru.
CDEK publishes a shared sandbox account for integration testing:
Client ID:
EMscd6r9JnFiQ3bLoyjJY6eM78JrJceIClient Secret:
PjLZkKBHEiLK3YsjtNrt3TGNG0ahs3kh
⚠️ CDEK rotates this shared test account from time to time. If you get
OAuth token error (HTTP 401) … invalid_client, the public pair has been rotated — request your own sandbox keys from the CDEK integration dashboard (lk.cdek.ru → Integration → API Keys).
Authentication
OAuth 2.0 Client Credentials flow, handled by the OAuthStrategy in @theyahia/mcp-core:
Automatic token acquisition on first request
Token caching with proactive refresh shortly before expiry
Concurrent request deduplication (a single in-flight token refresh is shared)
Automatic retry on 401 with token invalidation
E-commerce Stack
Pair with other russian-mcp servers for a complete e-commerce AI stack:
Server | Purpose |
cdek-mcp | Shipping & logistics |
Address validation, company lookup |
Part of the russian-mcp series.
Demo Prompts
"How much does it cost to ship a 2kg parcel from Moscow to Saint Petersburg?" Uses
get_citiesto find city codes, thencalculate_tariff_listto compare all available tariffs."Find the nearest CDEK pickup point to Red Square" Uses
get_citiesto resolve the Moscowcity_code, thenlist_delivery_pointswithlatitude: 55.7539,longitude: 37.6208,radius_km: 5— results are filtered to the radius and sorted by distance (each annotated withкоординатыandрасстояние_км)."Create an order to send a book from Kazan to Novosibirsk, schedule courier pickup, and print the receipt" Uses
create_order, thencreate_courier_pickupto schedule collection, andprint_receiptfor the waybill.
Development
git clone https://github.com/theYahia/cdek-mcp.git
cd cdek-mcp
npm install
npm run lint # ESLint (flat config)
npm run typecheck # tsc --noEmit
npm run build # emit dist/
npm test # unit tests (vitest)
npm run test:e2e # e2e smoke test (lists tools, no real credentials)Run the server locally against the CDEK sandbox (api.edu.cdek.ru) — use the shared test pair from Sandbox Mode or your own sandbox keys:
CDEK_SANDBOX=true \
CDEK_CLIENT_ID=<YOUR_SANDBOX_CLIENT_ID> \
CDEK_CLIENT_SECRET=<YOUR_SANDBOX_CLIENT_SECRET> \
npm run devSee CHANGELOG.md for release notes.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables interaction with Shiprocket shipping services to check courier rates and delivery times, create and manage orders, ship packages, track shipments, and schedule pickups through natural language commands.1129
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to track and manage deliveries by interacting with the Parcel delivery tracking API. Users can add new shipments, retrieve active delivery statuses, and look up carrier information through natural language.2
- AlicenseBqualityDmaintenanceIntegrates with CDEK delivery API to manage orders, track shipments, find pickup points, and handle delivery labels and barcodes through natural language.49MIT
- FlicenseNot gradedqualityCmaintenanceEnables courier rate checks, order management, shipping, and tracking via Shiprocket's API through natural language.11
Related MCP Connectors
Multi-carrier shipping for AI agents: compare rates, buy labels, track packages, validate addresses
India shipping for AI agents: Shiprocket courier serviceability, create orders, track AWB.
Track shipments and search shipping products (DPD, InPost, DHL, FedEx, UPS, GLS) via GlobKurier API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/cdek-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server