
bfrs/shiprocket-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Shiprocket用のモデルコンテキストプロトコル(MCP)サーバーです.
概要
Shiprocket用のモデルコンテキストプロトコル(MCP)サーバーです。 これを使うと: - 最高の最速かつ最速のサービス可能な宅配業者のパートナー(市やピンコードに基づいて)と配送速度 - 作成、更新(単一またはバルク)、注文をキャンセル - 直接注文を出荷 - AWB番号、Shiprocket Order ID、または Source Order IDを使用して注文を追跡する 電子メールとパスワードで個人Shiprocketアカウントに直接接続します。 - ノード(バージョン > 20.0.0 および < 23.0.0) - Claudeデスクトップアプリ(または Cursor) claude desktop config.json または mcp.json に以下を追加します。 Claude では、Claude デスクトップ設定ディレクトリの claude desktop config.json として以下のように保存します。 Cursor では、以下の設定ディレクトリにある mcp.json として保存します。 Claudeデスクトップを開き、Shiprocketを利用可能な統合として表示する必要があります.
概要(AI 翻訳)
Shiprocket用のモデルコンテキストプロトコル(MCP)サーバーです。
これを使うと、次のことができます:
- 最高で最速のサービス可能な宅配業者のパートナー(市街地やピンコードに基づく)と配送速度をチェック
- 作成、更新(単一かバルク)、および順序をキャンセルして下さい
- 直接注文を出荷して下さい
- AWB番号、Shiprocket注文ID、またはソースオーダーIDを使用して注文を追跡する
電子メールとパスワードで個人Shiprocketアカウントに直接接続します。
##Claude に接続したときにできることの例を示します。
お問い合わせ
️️ ️
- ノード(バージョン > 20.0.0 および < 23.0.0)
- デスクトップアプリ(またはカーソル)
️️ インストール
##1. リポジトリのクローン化
##2. 既存のpackage.jsonを使用して依存関係をインストールする
##3. MCP サーバーに接続する
[claude_desktop_config.json または mcp.json に以下を追加します。
Claude では、Claude デスクトップ設定ディレクトリの claude desktop config.json として以下のように保存します。
Cursor では、以下の設定ディレクトリにある mcp.json として保存します。
Claude デスクトップを開き、利用可能な統合として Shiprocket を参照してください。
または Cursor を再起動します。
リモート(HTTP + OAuth)サーバーとして実行
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
🚀 Shiprocket MCP Integration
This is a Model Context Protocol (MCP) server for Shiprocket.
With this, you can:
- Check best and fastest serviceable courier partners(based on city or pincodes) and their shipping rates
- Create, update (single or bulk), and cancel orders
- Ship orders directly
- Track orders using the AWB number, Shiprocket Order ID, or Source Order ID
It connects to your personal Shiprocket account directly via Email and password.
Here’s an example of what you can do when it’s connected to Claude.
🛠️ Prerequisites
- Node (version > 20.0.0 and < 23.0.0)
- Claude Desktop app (or Cursor)
🛠️ Installation
1. Clone the Repository
git clone https://github.com/bfrs/shiprocket-mcp.git
cd shiprocket-mcp
2. Install Dependencies using the existing package.json
# Install dependencies
npm install
# Build the binary
npm run build
3. Connect to MCP server
Add the following to your claude_desktop_config.json or mcp.json
{
"mcpServers": {
"Shiprocket": {
"command": "npm",
"args": [
"--prefix",
"{{PATH_TO_SRC}}",
"start",
"--silent"
],
"env": {
"SELLER_EMAIL":"",
"SELLER_PASSWORD":""
}
}
}
}
For Claude, save this as claude_desktop_config.json in your Claude Desktop configuration directory at:
~/Library/Application Support/Claude/claude_desktop_config.json
For Cursor, save this as mcp.json in your Cursor configuration directory at:
~/.cursor/mcp.json
Open Claude Desktop and you should now see Shiprocket as an available integration.
Or restart Cursor.
Running as a remote (HTTP + OAuth) server
Instead of every user running a local copy with their password in a config file, the server can be hosted once and sellers connect by URL. Clients (Claude.ai, ChatGPT, Claude Code, Cursor) discover the OAuth endpoints automatically and open a browser login.
cp .env.example .env # then fill in the HTTP section
npm run build && npm run start:http
# or: docker compose up
| Variable | Required | Purpose |
|---|---|---|
OAUTH_ISSUER |
production | Public base URL, e.g. https://mcp.example.com |
TOKEN_ENC_KEY |
production | Base64 32-byte key; seller tokens are AES-256-GCM encrypted in Redis. Generate with openssl rand -base64 32. Rotating it invalidates every stored token (sellers re-login). |
REDIS_HOST / REDIS_PORT / REDIS_PASSWORD / REDIS_TLS |
production | Token store. Without REDIS_HOST an in-memory store is used (development only). |
Endpoints: /.well-known/oauth-authorization-server, /oauth/register (DCR),
/oauth/authorize, /oauth/consent, /oauth/token, /oauth/revoke (RFC 7009 — revoking
either token of a pair invalidates both and closes any live MCP session), /mcp.
Consent and scopes
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"Shiprocket": {
"command": "npm",
"args": [
"--prefix",
"{{PATH_TO_SRC}}",
"start",
"--silent"
],
"env": {
"SELLER_EMAIL":"<Your Shiprocket Email>",
"SELLER_PASSWORD":"<Your Shiprocket password>"
}
}
}
}