Shiplogic MCP Server

by jlwainwright

Integrations

  • Used for environment variable configuration with a .env file.

  • Provides a support link in the README, allowing users to financially support the developer of the MCP server.

  • Can be used to test the server's API endpoints during development.

Сервер MCP Shiplogic

Сервер Model Context Protocol (MCP), который обеспечивает бесшовную интеграцию с API Shiplogic Shipping. Создан с использованием MCP SDK и TypeScript для обеспечения безопасности типов и улучшения опыта разработчиков.

Демо

# Example conversation with Claude: User: "Get shipping rates from Cape Town to Johannesburg for a 2.5kg parcel" Claude: "I'll check shipping rates for you..." [Using tool: get_shipping_rates] Result: Economy service - R95 (2-3 days delivery) User: "Book the economy service" Claude: "Creating shipment..." [Using tool: create_shipment] Result: Shipment created! Tracking: QR4FVL

Функции

  • 🚚 Получите стоимость доставки — рассчитайте стоимость доставки между адресами
  • 📦 Создавайте отправки — заказывайте отправки с автоматическим отслеживанием
  • 🔍 Отслеживание посылок — отслеживание отправлений в режиме реального времени
  • Отмена поставок — отменяйте заказы при необходимости
  • Дополнительные услуги — получите доступ к дополнительным тарифам на специальные услуги
  • 📚 Управление адресной книгой — хранение и управление часто используемыми адресами

Установка

Предпосылки

  • Node.js 18+
  • npm или пряжа
  • Ключ API Shiplogic (получите его на shiplogic.com )

Быстрый старт

  1. Клонировать и установить:
git clone https://github.com/jlwainwright/shiplogic-mcp.git cd shiplogic-mcp npm install
  1. Настроить среду:
cp .env.example .env # Edit .env and add your Shiplogic API key
  1. Сборка сервера:
npm run build

Использование

С Клодом Десктопом

Добавьте это в конфигурацию вашего Claude Desktop:

{ "mcpServers": { "shiplogic": { "command": "node", "args": ["/absolute/path/to/shiplogic-mcp/dist/index.js"], "env": { "SHIPLOGIC_API_KEY": "your_api_key_here" } } } }

С инспектором MCP

Протестируйте сервер с помощью MCP Inspector:

npm run inspect

Автономный

Запустите сервер напрямую:

npm run dev

Доступные инструменты

get_shipping_rates

Рассчитайте стоимость доставки между двумя адресами.

{ collection_address: { street_address: string, city: string, code: string, country?: string, type?: "residential" | "business" }, delivery_address: { street_address: string, city: string, code: string, country?: string, type?: "residential" | "business" }, parcels: [{ length: number, // cm width: number, // cm height: number, // cm weight: number, // kg description?: string }], declared_value?: number }

create_shipment

Создайте новую отправку с отслеживанием.

{ service_level_code: string, // e.g., "ECO" collection_address: { /* same as above */ }, delivery_address: { /* same as above */ }, parcels: [{ /* same as above */ }], collection_contact: { name: string, mobile_number?: string, email?: string }, delivery_contact: { name: string, mobile_number?: string, email?: string }, customer_reference?: string, mute_notifications?: boolean }

track_shipment

Отслеживайте посылку по номеру отправления.

{ tracking_number: string }

cancel_shipment

Отменить существующую отправку.

{ tracking_reference: string }

get_opt_in_rates

Получите дополнительные тарифы на услуги.

{ collection_address: { /* address object */ }, delivery_address: { /* address object */ } }

add_address_to_book

Добавьте адрес в адресную книгу учетной записи.

{ account_id: number, address: { street_address: string, city: string, code: string, country?: string, type?: "residential" | "business", company?: string }, name?: string, // Name for this address entry type?: "collection" | "delivery" // Address type }

get_address_book

Извлечь адреса из адресной книги учетной записи.

{ account_id: number, type?: "collection" | "delivery" // Optional filter by type }

remove_address_from_book

Удалить адрес из адресной книги учетной записи.

{ account_id: number, address_id: number }

Конфигурация

Переменные среды:

ПеременнаяОписаниеНеобходимыйПо умолчанию
SHIPLOGIC_API_KEYВаш ключ API ShiplogicДа-
SHIPLOGIC_API_URLБазовый URL APIНетhttps://api.shiplogic.com

Разработка

Структура проекта

shiplogic-mcp-official/ ├── src/ │ └── index.ts # Main server implementation ├── dist/ # Compiled JavaScript (generated) ├── package.json ├── tsconfig.json ├── .env.example └── README.md

Скрипты

  • npm run build — Компиляция TypeScript
  • npm run dev — сборка и запуск
  • npm run inspect — запуск с помощью MCP Inspector

Тестирование

# Run with MCP Inspector npm run inspect # In another terminal, test the tools curl -X POST http://localhost:3000/tools/list

Ссылка на API

Этот сервер интегрируется с Shiplogic API v2. Подробную документацию API см.:

Лицензия

Лицензия MIT — см. файл ЛИЦЕНЗИЯ

Внося вклад

  1. Форк репозитория
  2. Создайте ветку функций ( git checkout -b feature/amazing-feature )
  3. Зафиксируйте изменения ( git commit -m 'Add amazing feature' )
  4. Отправка в ветку ( git push origin feature/amazing-feature )
  5. Открыть запрос на извлечение

Поддерживать

Если вы найдете этот проект полезным, рассмотрите возможность поддержки моей работы. Ваша поддержка помогает мне уделять больше времени разработке с открытым исходным кодом и создавать лучшие инструменты для сообщества.

Благодарности


Сделано с ❤️ Жаком Уэйнрайтом

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Сервер MCP, обеспечивающий бесшовную интеграцию с API доставки Shiplogic для расчета тарифов на доставку, создания отправок, отслеживания посылок и программного управления операциями по доставке.

  1. Демо
    1. Функции
      1. Установка
        1. Предпосылки
        2. Быстрый старт
      2. Использование
        1. С Клодом Десктопом
        2. С инспектором MCP
        3. Автономный
      3. Доступные инструменты
        1. get_shipping_rates
        2. create_shipment
        3. track_shipment
        4. cancel_shipment
        5. get_opt_in_rates
        6. add_address_to_book
        7. get_address_book
        8. remove_address_from_book
      4. Конфигурация
        1. Разработка
          1. Структура проекта
          2. Скрипты
          3. Тестирование
        2. Ссылка на API
          1. Лицензия
            1. Внося вклад
              1. Поддерживать
                1. Благодарности

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    An unofficial MCP server that provides an interface to access the Autumn pricing API for managing customers, entitlements, invoices, and generating billing portal links.
                    Last updated -
                    5
                    TypeScript
                    MIT License
                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
                    Last updated -
                    39
                    26
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A comprehensive Model Context Protocol server that enables users to interact with the ShipStation API for managing orders, shipments, carriers, warehouses, products, customers, stores, webhooks, and fulfillments through structured tools.
                    Last updated -
                    39
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A comprehensive server that enables interaction with the ShipHero API through the Model Context Protocol, providing tools for managing orders, products, inventory, shipping, warehouses, vendors, and webhooks.
                    Last updated -
                    29
                    JavaScript

                  View all related MCP servers

                  ID: 1twa0wqawt