Deftship Server
БесплатноНе проверенEnables AI clients to quote, ship, track, void, and manage shipments via the Deftship multi-carrier shipping API using natural language commands.
Описание
Enables AI clients to quote, ship, track, void, and manage shipments via the Deftship multi-carrier shipping API using natural language commands.
README
A Model Context Protocol server for the Deftship multi-carrier shipping API. It lets any MCP-capable AI client (Claude Desktop, Claude Code, Cursor, Codex CLI, and others) quote, ship, track, void and manage shipments in natural language using your Deftship API token.
What it can do
The full shipping lifecycle is exposed as tools:
| Domain | Tools |
|---|---|
| Parcel | get rates, create draft, ship, void, get/track, merge labels, mark as shipped, list e-commerce orders |
| Freight | get rates, create draft, ship, void, get/track |
| Pickup | get rates, create, arrange, void, get |
| Insurance | get rate, book, void |
| Batch (beta) | create, add items, remove items, get, ship |
| Account | check balance, address book, validate address, service names, carrier status, create ticket |
A typical flow: deftship_get_parcel_rates → choose a rate_id → deftship_ship_parcel
→ deftship_get_parcel to fetch the label and track it.
Safety guardrails
Because an AI agent can drive this end to end, spending is deliberately hard to do by accident:
- Sandbox by default. With
DEFTSHIP_ENV=sandbox(the default) every operation runs against the isolated sandbox with a $10,000 dummy balance and never touches production. Going live is a deliberate one-line change. - Explicit confirmation. Every tool that spends your balance or is irreversible
(
ship,void,book_insurance,arrange_pickup,ship_batch) refuses to run unless called with"confirm": true, forcing the agent to surface the action to you first. - Honest tool hints. Read-only tools are marked
readOnlyHint; spending tools are markeddestructiveHint, so clients can prompt for approval.
Setup
1. Get an API token
Generate a sandbox token from your Deftship organisation's API page. Use sandbox while you test; switch to a production token only when you are ready to spend real money.
2. Configure your MCP client
Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json):
{
"mcpServers": {
"deftship": {
"command": "npx",
"args": ["-y", "@deftship/mcp"],
"env": {
"DEFTSHIP_API_TOKEN": "bearer-your-token-here",
"DEFTSHIP_ENV": "sandbox"
}
}
}
}
Codex CLI (~/.codex/config.toml):
[mcp_servers.deftship]
command = "npx"
args = ["-y", "@deftship/mcp"]
env = { DEFTSHIP_API_TOKEN = "bearer-your-token-here", DEFTSHIP_ENV = "sandbox" }
Cursor (.cursor/mcp.json): same shape as the Claude example above.
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
DEFTSHIP_API_TOKEN |
yes | — | Your Deftship API token. |
DEFTSHIP_ENV |
no | sandbox |
sandbox or production. Determines the API URL. |
Local development
npm install
npm run build # compile TypeScript to dist/
npm run dev # watch mode
DEFTSHIP_API_TOKEN=bearer-... npm start
The server speaks MCP over stdio. Do not write anything to stdout in tool code — stdout carries the JSON-RPC stream; diagnostics go to stderr.
Project structure
src/
config.ts env parsing, sandbox/production base URL resolution
http.ts fetch wrapper: auth, error + rate-limit normalization
schemas.ts shared Zod schemas (address, package, item, ...)
server.ts assembles the server and registers all tool modules
index.ts stdio entry point
tools/
helpers.ts registration wrapper, confirm gate, result formatting
parcel.ts freight.ts pickup.ts insurance.ts batch.ts account.ts
Tool schemas mirror the field tables in the official Deftship developer docs.
License
MIT
Установка Deftship Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Kodeas/deftship-mcpFAQ
Deftship Server MCP бесплатный?
Да, Deftship Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Deftship Server?
Нет, Deftship Server работает без API-ключей и переменных окружения.
Deftship Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Deftship Server в Claude Desktop, Claude Code или Cursor?
Открой Deftship Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Deftship Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
