Skip to main content

快递100推出了国内首个兼容MCP协议的物流信息服务平台—快递100 MCP Server。 快递100旗下百递云·API开放平台的核心API服务现已全面支持MCP协议。开发者简单配置即可快速接入快递查询、运费预估、智能时效预估(含全程与在途模式)等核心功能。

Project description

快递100 MCP Server (Python)

通过uv安装python,最低版本要求为3.11

uv python install 3.11

获取快递100 API KEY

登录快递100获取: 快递100官方 (注意不要泄露授权key,以防被他人盗用!!!)

一、STDIO方式:在线获取快递100 MCP服务运行

通过uvx命令一步获取kuaidi100_mcp并使用

{
  "mcpServers": {
    "kuaidi100": {
      "command": "uvx",
      "args": [
        "kuaidi100-mcp"
      ],
      "env": {
        "KUAIDI100_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

二、STDIO方式:下载本项目至本地,配置本地项目后运行

通过uv创建一个项目

uv init mcp_server_kuaidi100

api_mcp.py拷贝到该目录下,通过如下命令测试mcp server是否正常运行

uv run --with mcp[cli] mcp run {YOUR_PATH}/mcp_server_kuaidi100/api_mcp.py
# 如果是mac,需要加转义符
uv run --with mcp\[cli\] mcp run {YOUR_PATH}/mcp_server_kuaidi100/api_mcp.py

如果没有报错则MCP Server启动成功

在支持MCP的客户端中使用

在MCP Server配置文件中添加如下内容后保存

{
  "mcpServers": {
    "kuaidi100": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "{YOUR_PATH}/mcp_server_kuaidi100/api_mcp.py"
      ],
      "env": {
        "KUAIDI100_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

三、SSE方式:

配置SSE链接和KEY后使用

"kuaidi100": {
    "url": "https://api.kuaidi100.com/mcp/sse?key=<YOUR_API_KEY>"
}

测试

物流轨迹查询:

trae_test_queryTrace.png

快递预估时效:

trae_test_estimateTime.png

快递预估价格

trae_test_estimatePrice.png

Tips

如需获取账号信息(如 key、customer、secret),或免费试用100单,请访问API开放平台进行注册

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kuaidi100_mcp-0.1.2.tar.gz (115.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kuaidi100_mcp-0.1.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file kuaidi100_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: kuaidi100_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 115.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for kuaidi100_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 69461d7c79e1e77bd7ff72d25c086135cb18d8b0505de8356662033a3036ea6c
MD5 f92fb47bc216ac74d87d2313dff65fd5
BLAKE2b-256 319b9daec830e9ae5cc2a3899d53d71d684f8e63cbfa2a63a79eccf4a05a23a8

See more details on using hashes here.

File details

Details for the file kuaidi100_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for kuaidi100_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db761c5425a9c3a748df9fff6f35179a594ae871cc66a840c75d07bd6219bfb1
MD5 7e4c3528cfdbdbed0828632d2929ad9e
BLAKE2b-256 87acab012efb291ebab6be1ac29ceae676a097fb5de19e27dd0fc3e82cb8bb87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page