
Novaposhta
io.github.shopanaio由 GitHub 账号 shopanaio 发布v0.0.1-alpha.7更新于 Oct 24, 2026
MCP Server for Nova Poshta API integration with AI assistants
概览
让助手通过 Nova Poshta API 查询乌克兰 Nova Poshta 物流数据,并管理运单、地址和交易方。
- 可以做什么
- 将 Nova Poshta 物流 API 封装为 MCP 工具,支持单件与批量包裹跟踪、物流轨迹和单据列表查询,以及城市、居民点、街道、仓库和自提柜的地址检索。还提供货物类型、服务类型、付款方式、托盘类型等参考数据,并可计算运费和预计送达日期。此外可以创建、更新和删除运单、交易方、地址和联系人,批量模式会依次处理多个运单以避免触发频率限制。
- 适用场景
- 适合需要助手回答 Nova Poshta 包裹或网点问题,或在聊天客户端中自动完成运费估算、运单创建等日常寄件任务的场景。跟踪、地址检索和参考数据查询无需凭据,因此也可以仅为只读物流查询而添加。
- 运行要求
- 以 stdio 方式在本地运行,通常通过 npx 使用 npm 包 @shopana/novaposhta-mcp-server,因此需要 Node.js。仅运单、地址管理、交易方和联系人操作需要 Nova Poshta 账号和 API 密钥,密钥通过环境变量 NOVA_POSHTA_API_KEY 传入。可选环境变量 NOVA_POSHTA_SYSTEM 和 LOG_LEVEL 用于配置系统标识和日志级别。需要能访问 Nova Poshta API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Novaposhta,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Nova Poshta MCP Server
[npm version] [MCP Registry] [License] [TypeScript] [MCP] [MCP Badge]
Model Context Protocol (MCP) server for Nova Poshta API integration with AI assistants
✨ Now available in the MCP Registry!
Features • Installation • Quick Start • Documentation • Examples
Overview
@shopana/novaposhta-mcp-server is a production-ready Nova Poshta MCP server that lets you work with Ukrainian shipping and logistics data directly from AI assistants like Cursor, Claude Code, OpenAI, Gemini and any other MCP-compatible client.
Built on top of the type-safe @shopana/novaposhta-api-client, it turns Nova Poshta’s tracking, address and branch search, waybill management, and reference data into clean, AI-friendly tools — so you can automate routine delivery tasks, speed up developer workflows, and integrate Nova Poshta into your apps with minimal effort.
Features
- Comprehensive Tracking: Track single/multiple shipments, view movement history, and list documents
- Address Discovery: Search cities, settlements, streets, and warehouses with advanced filtering
- Waybill Operations: Calculate costs, create, update, and delete waybills programmatically
- Reference Data: Access cargo types, service types, payment methods, and more
- Type-Safe: Built with TypeScript for full type safety
- Production-Ready: Enterprise-grade error handling and logging
- Zero Configuration: Works out of the box with sensible defaults
Quick Start
1. Get Your API Key (Optional for most operations)
Note: API key is only required for waybill operations (create, update, delete). Tracking, address search, and reference data work without authentication.
- Sign up at Nova Poshta
- Navigate to Settings → API Keys
- Generate a new API key
2. Configure the Server
Create or update your .mcp.json:
3. Restart Your MCP Client
After updating your MCP configuration, you need to restart or reload your client
4. Start Using
Ask Claude:
- "Track Nova Poshta package 20450123456789"
- "Find warehouses in Kyiv"
- "Calculate shipping cost from Kyiv to Lviv for 5kg package"
- "Search for streets in Kharkiv"
Configuration
Environment Variables
Operations that work without API key:
- Tracking (track_document, track_multiple_documents, track_multiple, get_document_movement, get_document_list)
- Address search (address_get_settlements, address_get_settlement_country_region, address_search_cities, address_search_settlements, address_search_streets, address_get_warehouses)
- Reference data (all reference_* tools)
Operations that require API key:
- Waybill management (waybill_calculate_cost, waybill_get_estimate, waybill_create, waybill_create_with_options, waybill_create_to_postomat, waybill_create_batch, waybill_update, waybill_delete, waybill_delete_batch, waybill_get_delivery_date)
- Address management (address_save, address_update, address_delete)
- Counterparty operations (counterparty_get_counterparties, counterparty_get_addresses, counterparty_get_contact_persons, counterparty_save, counterparty_update, counterparty_delete, counterparty_get_options)
- Contact person management (contact_person_save, contact_person_update, contact_person_delete)
Transport Modes
stdio
Best for local AI assistants like Claude Desktop and Claude Code:
Available Tools
Tracking Tools
track_document
Track a single Nova Poshta document by number and optional phone to receive live status, location, and ETA.
track_multiple_documents
Track multiple Nova Poshta documents at once and receive aggregated statistics.
track_multiple
Track multiple Nova Poshta documents with organized results and statistics. Returns successful/failed tracking attempts with delivery statistics (delivered, in-transit, at-warehouse counts). More convenient than track_multiple_documents for batch operations.
get_document_movement
Get movement history for up to 10 documents including statuses and timestamps.
get_document_list
List documents created in the given date range with pagination support.
Address Tools
address_get_settlements
Get settlement areas (областей) in Ukraine. Returns list of administrative regions/areas. Cache this public directory for 12 hours.
address_get_settlement_country_region
Get settlement country regions (регіонів) for a specific area. Returns list of regions within an administrative area. Cache for 12 hours.
address_search_cities
Find Nova Poshta cities by name or postal index. Always use limit parameter (recommended: 10) to avoid large responses.
address_search_settlements
Search for settlements (city, town, village) with pagination. Always use limit parameter (recommended: 10) to avoid large responses.
address_search_streets
Search for streets inside a settlement. Used for door pickup/delivery flows. Always use limit parameter (recommended: 10) to avoid large responses.
address_get_warehouses
List Nova Poshta warehouses (branches, postomats, pickup points) with advanced filtering. Always use limit parameter (recommended: 10-20) to avoid large responses.
address_save
Create new address for a counterparty. Requires API key. Response returns the Ref and Description needed for door-to-door delivery.
address_update
Update existing counterparty address. Can only edit an address before a waybill is created with it.
address_delete
Delete counterparty address by reference. Allowed only before the address participates in an Internet document.
Waybill Tools
waybill_calculate_cost
Calculate delivery cost and optional delivery date estimation for a shipment. Can use typed fields or raw API payload.
waybill_get_estimate
Get complete shipment estimate (price + delivery date) in one call. Combines cost calculation and delivery date estimation for convenience.
waybill_create
Create a standard Nova Poshta waybill (Internet document). This is the basic waybill creation method.
waybill_create_with_options
Create a Nova Poshta waybill with additional options and services. Supports backward delivery, additional services, third-party payer, and RedBox barcodes. Use this when you need COD, insurance, or return shipments.
waybill_create_to_postomat
Create a waybill for delivery to a recipient postomat. Recipient postomats have a 20 kg limit and require an OptionsSeat array with parcel dimensions.
The outer request uses PascalCase fields. Fields inside OptionsSeat use the API's lower camel case wire format. Use DoorsPostomat or WarehousePostomat as ServiceType; CargoType must be Parcel or Documents, declared Cost must not exceed 10,000 UAH, and SeatsAmount must match the number of OptionsSeat items. Each seat is limited to 20 kg, 40 cm wide, 60 cm long, and 30 cm high.
waybill_create_for_postomat remains available as a deprecated compatibility alias and accepts the same request.
Sending from a postomat with waybill_create
Use the existing waybill_create tool for physical sending from a sender postomat. Pass the postomat Ref as SenderAddress. Use WarehouseWarehouse for delivery to a branch or WarehouseDoors for delivery to an address. After creation, select the waybill in the Nova Poshta mobile application to open the locker and load the parcel.
The tool uses the same postomat limits and lower camel case OptionsSeat fields shown above. Payment availability depends on the sender account. If Nova Poshta rejects NonCash for payer Sender, retry with an available method such as Cash or inspect the counterparty options.
For warehouse discovery, Counterparty.City is not guaranteed to be a usable city Ref. Search warehouses with CityDescription when necessary and use the selected warehouse's CityRef in the waybill. The MCP server automatically retries API rate-limit code 20000401501 with incremental delays.
waybill_create_batch
Batch create multiple waybills sequentially. Processes each waybill one by one to avoid rate limiting. Returns array of results including any errors.
waybill_update
Update an existing waybill. Pass the raw payload (must include DocumentRef).
waybill_delete
Delete one or multiple waybills by their DocumentRef. Waybills can only be deleted before they enter processing.
waybill_delete_batch
Batch delete multiple waybills by their DocumentRef in a single API call. Waybills can only be deleted before they enter processing.
waybill_get_delivery_date
Get estimated delivery date for a city pair and service type.
Reference Tools
reference_get_cargo_types
List available cargo types supported by Nova Poshta. Cache this directory monthly. Values: Parcel, Cargo, Documents, TiresWheels, Pallet.
reference_get_pack_list
List available packaging types with standard package dimensions and descriptions. Useful for calculating delivery costs. Cache monthly.
reference_get_tires_wheels_list
List available tires and wheels types. Returns types and descriptions for shipping tires and wheels as cargo. Cache monthly.
reference_get_cargo_description_list
List cargo descriptions with optional search. Returns predefined descriptions for common cargo types. Cache monthly.
reference_get_pickup_time_intervals
Get available pickup time intervals. Returns time windows when Nova Poshta can pick up packages from sender. Cache hourly.
reference_get_backward_cargo_types
List backward delivery cargo types. Returns types of cargo that can be sent back (documents, money, etc.). Used for return shipments and COD. Cache monthly.
reference_get_redelivery_payers
List payer types for redelivery. Returns who can pay for backward delivery (Sender/Recipient). Used with return shipments. Cache monthly.
reference_get_service_types
List delivery service types: WarehouseWarehouse, WarehouseDoors, DoorsWarehouse, DoorsDoors, DoorsPostomat, and WarehousePostomat. Cache monthly.
reference_get_payment_methods
List supported payment methods for shipments. Returns Cash/NonCash. Non-cash payments are only available to customers with a Nova Poshta contract.
reference_get_pallet_types
List pallet types with dimensions and weight specifications. Cache monthly, especially when offering reverse delivery of pallets.
reference_get_time_intervals
Get available delivery time intervals for recipient city. Returns Number/Start/End entries. Cache monthly.
reference_get_ownership_forms
List corporate ownership forms required for counterparty creation. Returns refs such as ТОВ, ПрАТ, ФГ with both short and full names. Cache monthly.
reference_decode_message
Decode Nova Poshta API message code into human readable text. Maps numeric codes to Ukrainian/Russian descriptions.
reference_get_types_of_payers
Get list of payer types for waybill creation. Returns Sender/Recipient/ThirdPerson. ThirdPerson payer is accessible only after signing a service contract. Cache monthly.
reference_get_payment_forms
Get list of payment forms for waybill creation. Returns Cash/NonCash. Non-cash payments are available only to contracted clients. Cache monthly.
reference_get_types_of_counterparties
Get list of counterparty types. Returns PrivatePerson/Organization. Refresh monthly to stay aligned with sender/recipient onboarding rules.
Counterparty Tools
counterparty_get_counterparties
Get counterparties list filtered by property (Sender/Recipient/ThirdPerson). Requires API key. Cache daily. Each page tops out at 500 rows.
counterparty_get_addresses
Get addresses for a specific counterparty. Requires API key. Cache daily. Each page is capped at 500 entries.
counterparty_get_contact_persons
Get contact persons for a counterparty. API key is mandatory. Cache daily. Use paging to stay under the 500-record response cap.
counterparty_save
Create new counterparty (private person or organization). Private persons require first/last name. Organizations must also send OwnershipForm and EDRPOU. Requires API key.
counterparty_update
Update existing counterparty details. Can only edit a counterparty before creating a waybill with it.
counterparty_delete
Delete counterparty by reference. IMPORTANT: Only Recipient counterparties can be deleted through the API; Sender cleanup must go through your account manager.
counterparty_get_options
Get counterparty options and permissions. Returns booleans such as CanPayTheThirdPerson, CanSameDayDelivery, HideDeliveryCost, etc.
Contact Person Tools
contact_person_save
Create new contact person for a counterparty. Requires API key. All fields must be entered in Ukrainian.
contact_person_update
Update existing contact person details. Only legal entities may edit full profiles. Private persons can change phone only. Edits are allowed solely before a waybill is issued for that counterparty.
contact_person_delete
Delete contact person by reference. Allowed via API only for legal entities and only until the contact was used on an Internet document.
Usage Examples
Tracking a Shipment
Prompt to Claude:
Claude will use track_document tool and return detailed status including current location, estimated delivery, and recipient information.
Finding Warehouses
Prompt to Claude:
Claude will search for Lviv city and then list warehouses with POS terminals using appropriate filters.
Calculating Delivery Cost
Prompt to Claude:
Claude will find city references and calculate the delivery cost with estimated delivery date.
Multi-Document Tracking
Prompt to Claude:
Claude will use batch tracking tools and provide aggregated statistics: delivered, in transit, pending pickup, etc.
Project Structure
Debugging
Enable debug logging:
Check logs:
- stdio mode: Logs are written to stderr
FAQ
General Questions
Q: Why should I use this MCP server instead of calling Nova Poshta API directly? A: This MCP server provides several key advantages:
- Comprehensive Documentation: All tools are well-documented with clear descriptions, making it easy for AI assistants to understand and use them correctly
- Real Data Operations: Execute real API calls with actual Nova Poshta data - tracking shipments, calculating costs, creating waybills, and more
- AI-Native Integration: Designed specifically for AI assistants like Claude, enabling natural language interactions with Nova
Q: Do I need a Nova Poshta account to use this? A: Yes, you need to register at my.novaposhta.ua and generate an API key.
Q: Is this an official Nova Poshta package? A: No, this is a community-maintained package. For official API docs, visit developers.novaposhta.ua.
Q: Can I use this in production? A: Yes! The package is production-ready with enterprise-grade error handling.
Q: Does this support all Nova Poshta API features? A: The package covers the most commonly used features. If you need additional functionality, please open an issue.
Changelog
See CHANGELOG.md for a detailed history of changes.
License
Apache License 2.0 - see LICENSE for details.
Links
- MCP Registry - Find this server in the official registry
- Nova Poshta API Documentation
- Model Context Protocol
- MCP SDK
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
Made with ❤️ by Shopana.io
来源:packages/novaposhta-mcp-server/README.md,提交 450ab76
工具
0版本历史
1- v0.0.1-alpha.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分