BS

bfrs/shiprocket-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

29 stars 16 forks Качество 68 Тренд 8

Это сервер Model Context Protocol (MCP) для Shiprocket.

Обзор

Это сервер Model Context Protocol (MCP) для Shiprocket. С помощью этого вы можете: - Проверить лучших и самых быстрых обслуживаемых курьерских партнеров (на основе городских или пин-кодов) и их тарифов доставки - Создать, обновить (один или оптом) и отменить заказы - Заказы на суда напрямую - Отслеживать заказы с использованием номера AWB, идентификатор заказа Shiprocket или идентификатор заказа источника Он подключается к вашей личной учетной записи Shiprocket напрямую через электронную почту и пароль. - Узел (версия > 20.0.0 и < 23.0.0) - приложение Claude Desktop (или курсор) Добавить следующее в claude desktop config.json или mcp.json Для Клода сохраните это как claude desktop config.json в каталоге конфигурации Claude Desktop по адресу: Для Cursor сохраните это как mcp.json в каталоге конфигурации Cursor по адресу: Откройте Claude Desktop, и теперь вы должны видеть Shiprocket как доступную интеграцию.

Обзор (машинный перевод)

Это сервер Model Context Protocol (MCP) для Shiprocket.

С помощью этого вы можете: Проверьте лучших и быстрых обслуживаемых курьерских партнеров (на основе городских или пин-кодов) и их тарифов доставки.

  • Создавать, обновлять (единый или объемный) и отменять заказы Заказы судов напрямую Отслеживание заказов с использованием номера AWB, идентификатора заказа Shiprocket или идентификатора заказа Source

Он подключается к вашей личной учетной записи Shiprocket напрямую через электронную почту и пароль.

Вот пример того, что вы можете сделать, когда это связано с Клодом.

️ Предпосылки

  • Узел (версия > 20.0.0 и < 23.0.0) Приложение Claude Desktop (или Cursor)

️ Установка

###1.Клонировать репозиторий

###2 Установите зависимости с помощью существующего пакета.json

###3 Подключение к MCP-серверу Добавьте следующее к своему claude_desktop_config.json или mcp.json

Для Клода сохраните это как claude desktop config.json в каталоге конфигурации Claude Desktop по адресу:

Для Cursor сохраните это как mcp.json в каталоге конфигурации Cursor по адресу:

Откройте Claude Desktop, и теперь вы должны видеть T2 как доступную интеграцию.

Или перезапустить курсор.

Запуск как удаленный (HTTP + OAuth) сервер

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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.

Открыть полный README на GitHub

Установка

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>" } } } }