Skip to main content
Glama
pochta-russia-mcp

pochta-russia-mcp

by theYahia

pochta-russia-mcp

npm CI License: MIT

MCP server for Russian Post API — tracking, tariff calculation, delivery times, post office search, postal codes, address normalization.

Features (6 tools)

Tool

Description

What's required

track

Track a shipment by tracking number

POCHTA_LOGIN + POCHTA_PASSWORD (SOAP tracking)

calculate

Calculate cost and delivery times

POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD

delivery_time

Calculate delivery times between postal codes

POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD

get_offices

Search for post offices

POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD

zip_lookup

Postal code information

POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD

normalize_address

Address normalization via API

POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD

Related MCP server: cdek

Quick Start

Claude Desktop / Cursor / Windsurf (stdio)

{
  "mcpServers": {
    "pochta": {
      "command": "npx",
      "args": ["-y", "@theyahia/pochta-russia-mcp"],
      "env": {
        "POCHTA_TOKEN": "<ACCESS_TOKEN>",
        "POCHTA_LOGIN": "<LOGIN>",
        "POCHTA_PASSWORD": "<PASSWORD>"
      }
    }
  }
}

Claude Code

claude mcp add pochta \
  -e POCHTA_TOKEN=<ACCESS_TOKEN> \
  -e POCHTA_LOGIN=<LOGIN> \
  -e POCHTA_PASSWORD=<PASSWORD> \
  -- npx -y @theyahia/pochta-russia-mcp

Streamable HTTP

npx @theyahia/pochta-russia-mcp --http --port=3000

MCP endpoint: http://localhost:3000/mcp Health check: http://localhost:3000/health → {"status":"ok","version":"…","tools":6}

Environment Variables

Variable

Required

Description

POCHTA_TOKEN

Yes

App access token → Authorization: AccessToken … header

POCHTA_LOGIN

Yes

Account login → part of X-User-Authorization: Basic …

POCHTA_PASSWORD

Yes

Account password → part of X-User-Authorization: Basic …

POCHTA_KEY

No

Back-compat: ready-made base64(login:password) for X-User-Authorization (instead of LOGIN/PASSWORD)

POCHTA_TIMEOUT_MS

No

Request timeout in ms (default 15000)

Get API access: Sender's Cabinet → Settings → API. Specification: https://otpravka.pochta.ru/specification.

Authorization

REST methods of otpravka-api use two headers (per the official specification):

  • Authorization: AccessToken <POCHTA_TOKEN> — app access token;

  • X-User-Authorization: Basic <base64(POCHTA_LOGIN:POCHTA_PASSWORD)> — account credentials.

Tracking (track) uses the SOAP tracking API (tracking.russianpost.ru) and requires POCHTA_LOGIN + POCHTA_PASSWORD (the access token is not used there).

⚠️ Migration to 2.0.0 (breaking change)

In versions ≤ 1.x, authorization headers were formed incorrectly (the access token and key were swapped), which caused REST methods to fail authorization. In 2.0.0 the contract is fixed:

  • Before: POCHTA_TOKEN + POCHTA_KEY. This set no longer works on its own.

  • Now: POCHTA_TOKEN + POCHTA_LOGIN + POCHTA_PASSWORD.

  • POCHTA_KEY is kept only as optional back-compat (ready-made base64(login:password) for X-User-Authorization).

Reliability

  • Retries (up to 3) with exponential backoff on network errors, 429, and 5xx.

  • Request timeout (default 15 s, configurable via POCHTA_TIMEOUT_MS).

  • Diagnostic retry/error logs are written to stderr (the stdout channel is used by MCP).

Skills (Claude Code)

Command

Description

/track <number>

Track a Russian Post parcel

/calculate <from> <to> <weight>

Calculate shipment cost

/parcel <from> <to> <weight>

Full calculation with the nearest post office

Tests

npm install
npm run typecheck
npm test

License

MIT

Available Tools

6 tools
calculateC

Расчёт стоимости и сроков доставки Почтой России.

Inputs: weight (required), to_index (required), from_index (required), mail_type, +3 more.

delivery_timeB

Расчёт сроков доставки между двумя индексами.

Inputs: to_index (required), from_index (required), mail_type, mail_category.

get_officesB

Поиск почтовых отделений по индексу или населённому пункту.

Inputs: top, region, settlement, postal_code.

normalize_addressB

Нормализация адреса через API Почты России.

Inputs: raw_address (required).

trackA

Отслеживание почтового отправления Почты России по трек-номеру.

Inputs: barcode (required).

zip_lookupA

Информация по почтовому индексу: регион, город, график работы.

Inputs: postal_code (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have clear, distinct purposes: tracking, zip info, cost/delivery calculation, office search, delivery time, and address normalization. The only minor overlap is between 'calculate' (cost + delivery time) and 'delivery_time' (time only), but their descriptions clarify the difference.

    Naming Consistency5/5

    All tool names follow a consistent lowercase_with_underscores pattern. While some are verbs (track, calculate, get) and others are noun-based (zip_lookup, delivery_time, normalize_address), the style is uniform and predictable, making it easy to guess functionality.

    Tool Count5/5

    With 6 tools, the server is well-scoped for the Russian Post domain. Each tool addresses a distinct need—tracking, zip lookup, cost calculation, office search, delivery time, and address normalization—without excess or shortage.

    Completeness4/5

    The tool set covers the primary operations for Russian Post services, including tracking, address validation, cost/time estimation, and office lookup. Minor gaps exist, such as batch operations or detailed shipment history, but the core workflows are fully supported.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Integrates with CDEK delivery API to manage orders, track shipments, find pickup points, and handle delivery labels and barcodes through natural language.
      49
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables integration with Boxberry delivery services, allowing users to search cities and pickup points, calculate delivery costs and times, track shipments, check postal indexes, and list services.
      6
      35 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables CDEK delivery operations through natural language, including tariff calculation, order management, shipment tracking, pickup point search, courier pickup scheduling, barcode and receipt generation, and webhook management.
      62 npm
      1
      MIT