1. Conduid
  2. Files
  3. io.github.theYahia/cdek-mcp
MCP server · Files

io.github.theYahia/cdek-mcp

MCP server for CDEK delivery API — tariff calculation, order creation, tracking, cities, PVZ pickup

Unclaimed files
37Low

Scored 6 months ago · breakdown

About io.github.theYahia/cdek-mcp

io.github.theYahia/cdek-mcp is an MCP server published by theYahia in the Files category: mCP server for CDEK delivery API — tariff calculation, order creation, tracking, cities, PVZ pickup.

The repository has 1 stars and 0 forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add io-github-theyahia-cdek-mcp -- npx -y @theyahia/cdek-mcp
npx
npx -y @theyahia/cdek-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (16)

calculate_tariffРасчёт стоимости и сроков доставки СДЭК по конкретному тарифу, маршруту и параметрам груза. Используйте для предварительной оценки перед созданием заказа. Требует код тарифа (136=склад-склад, 137=склад-дверь, 138=дверь-склад, 139=дверь-дверь). Для поиска кода города используйте get_cities.

Parameters not published.

calculate_tariff_listРасчёт стоимости доставки СДЭК по всем доступным тарифам для маршрута. Используйте когда нужно показать клиенту все варианты доставки с ценами и сроками, не зная заранее код тарифа.

Parameters not published.

create_courier_pickupСоздание заявки на вызов курьера СДЭК для забора отправления. Требует UUID заказа и временной интервал. После создания можно отслеживать статус заявки через get_courier_pickup.

Parameters not published.

create_orderСоздание заказа на доставку СДЭК с указанием отправителя, получателя и мест. Перед созданием рекомендуется рассчитать стоимость через calculate_tariff. После создания заказ можно отслеживать через get_order или track_shipment.

Parameters not published.

create_webhookПодписка на вебхуки СДЭК для получения уведомлений о смене статуса заказов (ORDER_STATUS) или готовности фото (DOWNLOAD_PHOTO). СДЭК будет отправлять POST-запросы на указанный HTTPS URL.

Parameters not published.

delete_orderУдаление заказа СДЭК по UUID. Работает только для заказов, ещё не переданных в курьерскую службу. После удаления заказ нельзя восстановить.

Parameters not published.

delete_webhookУдаление подписки на вебхуки СДЭК по UUID вебхука. Используйте для отключения уведомлений или смены URL получателя (удалить старый + создать новый).

Parameters not published.

generate_barcodeГенерация штрихкода (этикетки) для заказа СДЭК по UUID. Поддерживает форматы A4, A5, A6 и до 10 копий. Ссылка на PDF появится в результатах get_order.

Parameters not published.

get_citiesПоиск городов в справочнике СДЭК по названию, индексу или стране. Возвращает код города, регион и ФИАС. Используйте для получения city_code перед вызовом calculate_tariff или create_order.

Parameters not published.

get_courier_pickupПолучение статуса заявки на вызов курьера СДЭК по UUID заявки. Возвращает дату, время и историю статусов заявки.

Parameters not published.

Show all 16 tools
get_orderПолучение полной информации о заказе СДЭК по UUID. Возвращает статусы, номер накладной и детали доставки. Используйте после create_order для проверки обработки заказа.

Parameters not published.

get_regionsПолучение справочника регионов СДЭК. Поддерживает фильтрацию по стране и названию региона, пагинацию. Используйте для построения иерархии локаций или фильтрации городов по региону.

Parameters not published.

list_delivery_pointsПоиск пунктов выдачи (ПВЗ) и постаматов СДЭК по городу, индексу или GPS-координатам. При указании latitude+longitude+radius_km фильтрует и сортирует пункты по расстоянию. Возвращает адрес, время работы, наличие примерочной и способы оплаты.

Parameters not published.

list_ordersПоиск и фильтрация заказов СДЭК по дате, номеру ИМ или накладной СДЭК. Поддерживает пагинацию. Используйте для получения списка заказов за период или поиска конкретного заказа.

Parameters not published.

print_receiptПечать квитанции (накладной) для заказа СДЭК в формате PDF. Опрашивает API до готовности файла (до 10 секунд) и возвращает ссылку для скачивания.

Parameters not published.

track_shipmentОтслеживание отправления СДЭК по номеру накладной (cdek_number). Возвращает полную историю статусов с датами и городами. Если известен только UUID заказа — используйте get_order.

Parameters not published.

Ask AI

✦

Ask AI about io.github.theYahia/cdek-mcp

Powered by Claude · Grounded in docs

I know everything about io.github.theYahia/cdek-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

cdek-mcp

npm CI

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_tariff Calculate delivery cost and time for a specific tariff
calculate_tariff_list Get all available tariffs with prices for a route

Orders

Tool Description
create_order Create a delivery order with sender, recipient, packages
get_order Get order details and status by UUID
delete_order Cancel/delete an order by UUID
list_orders Search/filter orders by date range, IM number, or CDEK waybill

Tracking

Tool Description
track_shipment Track shipment by CDEK waybill number

Locations

Tool Description
get_cities Search city directory by name, postal code, or country
get_regions Search region directory by country or name
list_delivery_points Find pickup points and parcel lockers by city or GPS coordinates

Barcode & Print

Tool Description
generate_barcode Generate barcode/label for an order
print_receipt Generate receipt/waybill PDF for an order

Courier Pickup

Tool Description
create_courier_pickup Schedule a courier pickup for an order
get_courier_pickup Check courier pickup request status

Webhooks

Tool Description
create_webhook Register webhook for order status updates or delivery photos
delete_webhook Remove a webhook subscription by UUID

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 --http

Endpoints:

  • POST /mcp — MCP JSON-RPC
  • GET /mcp — SSE stream
  • DELETE /mcp — session termination
  • GET /health — health check

Environment Variables

Variable Required Description
CDEK_CLIENT_ID Yes Client ID from CDEK dashboard
CDEK_CLIENT_SECRET Yes Client Secret from CDEK dashboard
CDEK_SANDBOX No true to use sandbox (api.edu.cdek.ru)
HTTP_PORT 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. Sandbox uses test credentials and the api.edu.cdek.ru endpoint.

Test credentials for sandbox:

  • Client ID: EMscd6r9JnFiQ3bLoyjJY6eM78JrJceI
  • Client Secret: PjLZkKBHEiLK3YsjtNrt3TGNG0ahs3kh

Production uses api.cdek.ru.

Authentication

OAuth 2.0 Client Credentials flow. TokenManager handles:

  • Automatic token acquisition on first request
  • Token caching (3600s TTL)
  • Proactive refresh 60s before expiry
  • Concurrent request deduplication
  • 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
dadata-mcp Address validation, company lookup

Part of the russian-mcp series.

Demo Prompts

  1. "How much does it cost to ship a 2kg parcel from Moscow to Saint Petersburg?" Uses get_cities to find city codes, then calculate_tariff_list to compare all available tariffs.

  2. "Find the nearest CDEK pickup point to Red Square" Uses list_delivery_points with GPS coordinates (latitude: 55.7539, longitude: 37.6208) to find nearby locations.

  3. "Create an order to send a book from Kazan to Novosibirsk, schedule courier pickup, and print the receipt" Uses create_order, then create_courier_pickup to schedule collection, and print_receipt for the waybill.

Development

git clone https://github.com/theYahia/cdek-mcp.git
cd cdek-mcp
npm install
npm run build
npm test

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.theYahia/cdek-mcp

How do I install io.github.theYahia/cdek-mcp?

Run claude mcp add io-github-theyahia-cdek-mcp -- npx -y @theyahia/cdek-mcp, then add the server to your MCP client's configuration.

Is io.github.theYahia/cdek-mcp safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.theYahia/cdek-mcp still maintained?

Yes — the last commit was a month ago. The repository has 1 stars and 0 forks.