Shipping Cost MCP Connector
Pulls real and estimated shipping costs from Shiprocket and Delhivery into Claude, with rollup summaries for yesterday, last 7 days, MTD, and last 30 days.
README
Shipping Cost MCP Connector
Pulls Shiprocket (actual) + Delhivery (estimated proxy) shipping costs into Claude, with Yesterday / Last 7 Days / MTD / Last 30 Days rollups.
Important limitations (read first)
- Shiprocket: costs come from live order data via the documented
/ordersAPI. The exact field name for shipping charge can vary by account/plan. Before trusting numbers, run theshiprocket_raw_order_sampletool and check which field (shipping_charges,freight_charges,charges, etc.) actually holds the value on your account, then adjustCHARGE_FIELD_CANDIDATESinlib/shiprocket.jsif needed. - Delhivery: there's no public API that lists your historical shipments by date,
and no API that returns actual billed amounts — only a live rate-estimate endpoint.
So
delhivery_cost_estimaterequires you to supply the shipment list (date, origin/dest pincode, weight) — e.g. exported from your own order records — and it estimates what each shipment should cost. It will be close but not exact to the paisa, same as your own Delhivery invoice reconciliation would show.
Setup
-
Generate Shiprocket API credentials Shiprocket panel → Settings → API → Add New API User → note the email + password emailed to that address.
-
Generate Delhivery API token Delhivery One / CL Panel → Settings → API Setup → copy your static token.
-
Deploy to Vercel
vercel deploy -
Set environment variables in the Vercel project dashboard (not in code):
SHIPROCKET_API_EMAILSHIPROCKET_API_PASSWORDDELHIVERY_API_TOKENDELHIVERY_CLIENT_NAME(your Delhivery client/company name as registered)MCP_ACCESS_TOKEN(any random string you choose — this now doubles as both the query-param token for manual testing AND the OAuth access token issued to Claude, plus the HMAC signing secret for authorization codes)
-
Add the connector in Claude using the base URL — you no longer need to append
?token=...for Claude itself (it now goes through the OAuth flow below automatically), though the query-param path still works for curl/manual testing:https://<your-vercel-app>.vercel.app/api/mcp
Why there's an OAuth layer here
Claude's custom connector UI only supports OAuth (it has no field for a plain
Bearer/query token), and its connection flow always attempts Dynamic Client
Registration (RFC 7591) against your server before calling any tools. A plain
token-only MCP server has no /register endpoint, so that step 404s and Claude
shows "couldn't register with sign-in service." To work around this, this
project includes a minimal, stateless OAuth 2.1 shim:
/.well-known/oauth-authorization-server— discovery metadata/.well-known/oauth-protected-resource— resource-first discovery metadata/api/register— auto-issues a client_id, no persistence needed/api/authorize— auto-approves and redirects back immediately (no login screen, since this server only ever serves you)/api/token— verifies the authorization code (HMAC-signed, PKCE-checked) and hands back your existingMCP_ACCESS_TOKENas the access token
Nothing here is persisted server-side; the "codes" are self-contained signed tokens, so this works fine on Vercel's stateless serverless functions.
Tools exposed
| Tool | What it does |
|---|---|
shiprocket_cost_summary |
Actual Shiprocket freight cost for yesterday / last_7_days / last_30_days / mtd |
shiprocket_raw_order_sample |
Diagnostic — 3 raw orders, to confirm the charge field name |
delhivery_cost_estimate |
Estimated Delhivery cost for a shipment list you supply |
combined_cost_summary |
Both carriers combined into one INR total |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。