Machship MCP

io.github.devkindhq由 GitHub 账号 devkindhq 发布v1.4.0更新于 Nov 3, 2026

用于Machship货运管理平台的模型上下文协议服务器

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Model Context Protocol server for the Machship freight management platform

已验证STDIO仅桌面

概览

Machship 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Machship MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Machship MCP Server: freight quotes, bookings and labels for AI agents

[npm] [Release] [License: ISC]

Machship MCP server connects Claude Desktop, Claude Code, Cursor, VS Code and any other MCP client to the Machship freight platform API. It has 125 tools for live rates, quotes, consignments, labels, manifests, tracking and invoices. It runs with npx over stdio, or as an HTTP endpoint.

Quickstart

You need Node.js 22 or later and a Machship API token. In Machship, go to Settings > API and generate a token.

bash
# Read the token without echo, so it stays out of shell historyread -rs MACHSHIP_API_TOKENclaude mcp add --scope local machship -e MACHSHIP_API_TOKEN="$MACHSHIP_API_TOKEN" -- npx -y @devkind/machship-mcp

Then ask your agent: "Ping the Machship API". A successful reply confirms the token.

Install in your client

Requirements:

  • Node.js 22 or later
  • A Machship API token
  • Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Goose, LM Studio, Warp, or another MCP client

Standard config works in most MCP clients:

json
{  "mcpServers": {    "machship": {      "command": "npx",      "args": ["-y", "@devkind/machship-mcp"],      "env": {        "MACHSHIP_API_TOKEN": "your-token-here"      }    }  }}

Keep the token in your user-level client config. Do not put it in a project .mcp.json that you commit.

Claude Desktop

Open Settings > Developer > Edit Config, or edit the file directly:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the standard config above and restart Claude Desktop.

Claude Code

Use the Quickstart command above. --scope local stores the token in ~/.claude.json, outside the repository. You can also install the Claude Code plugin.

Cursor

[Install in Cursor]

Or go to Cursor Settings > MCP > Add new MCP Server. Use type command, the command npx -y @devkind/machship-mcp, and set MACHSHIP_API_TOKEN.

VS Code
bash
code --add-mcp '{"name":"machship","command":"npx","args":["-y","@devkind/machship-mcp"],"env":{"MACHSHIP_API_TOKEN":"your-token-here"}}'

Or follow the VS Code MCP setup guide with the standard config above.

Windsurf

Follow the Windsurf MCP documentation and add the standard config above.

Goose

Go to Advanced settings > Extensions > Add custom extension. Use type STDIO, the command npx -y @devkind/machship-mcp, and set MACHSHIP_API_TOKEN.

LM Studio

Go to Program in the right sidebar > Install > Edit mcp.json and add the standard config above.

Warp

Go to Settings > AI > Manage MCP Servers > + Add, or type /add-mcp in the Warp prompt. Paste the standard config above.

Docker

No image is published to a registry. Build the image from this repo:

bash
docker build -t devkind/machship-mcp .

Stdio config for an MCP client:

json
{  "mcpServers": {    "machship": {      "command": "docker",      "args": ["run", "--rm", "-i", "-e", "MACHSHIP_API_TOKEN", "devkind/machship-mcp"],      "env": { "MACHSHIP_API_TOKEN": "your-token-here" }    }  }}

HTTP mode on port 3000. The image sets MCP_HOST=0.0.0.0, so the published port accepts outside connections:

bash
docker run --rm -e MACHSHIP_API_TOKEN -e TRANSPORT=http -p 3000:3000 devkind/machship-mcp

The server is also listed on Smithery.

Tools

The server has 125 tools in 21 modules. Every tool name starts with machship_.

AreaModulesTools
ConsignmentsConsignments, PendingConsignments, Consolidation, Notes36
Labels and documentsLabels, Attachments, CommercialInvoices22
Accounts and accessIdentities, IdentityProviders, OrganisationLinks, CustomSchemas28
Companies, items and locationsCompanies, CompanyItems, CompanyLocations, Locations20
RatesQuotes, Routes7
InvoicesCarrierInvoices, FinancialInvoice6
ManifestsManifests5
Connection checkAuthenticate (machship_ping)1

A typical flow: machship_get_companies for the company ID, machship_search_locations for suburbs and postcodes, machship_get_routes for live rates, machship_create_consignment to book, a label tool, then machship_manifest_consignments to send the booking to the carrier. machship_get_consignment_statuses tracks it.

Tool text output stops at 25,000 characters. The full response is in structuredContent.

Example

json
{  "tool": "machship_get_routes",  "arguments": {    "request": {      "companyId": 1790,      "fromLocation": { "suburb": "Melbourne", "postcode": "3000", "state": "VIC", "country": "AU" },      "toLocation": { "suburb": "Sydney", "postcode": "2000", "state": "NSW", "country": "AU" },      "items": [{ "weight": 10, "length": 30, "width": 30, "height": 30, "name": "Parcel", "quantity": 1 }]    }  }}

Illustrative output:

json
{  "object": {    "routes": [      {        "carrier": { "name": "Example Express" },        "carrierService": { "name": "Road Express" },        "consignmentTotal": { "totalSellPrice": 24.5 },        "despatchOptions": [{ "etaLocal": "2026-11-05T17:00:00" }]      }    ]  },  "errors": null}

Configuration

VariableRequiredDefaultPurpose
MACHSHIP_API_TOKENYesnoneMachship API token, sent only to MACHSHIP_API_URL. The server starts without it, but every tool call fails until it is set.
MACHSHIP_API_URLNohttps://live.machship.comMachship API base URL.
TRANSPORTNostdioSet to http for the HTTP transport.
PORTNo3000HTTP port when TRANSPORT=http.
MCP_HOSTNo127.0.0.1HTTP bind address when TRANSPORT=http.

Claude Code plugin

The repo root is a Claude Code plugin. It adds the Machship MCP server, pinned to a release version of @devkind/machship-mcp (.mcp.json). When you enable the plugin, Claude Code asks for your API token and stores it as a sensitive value. You can also change the API URL.

The plugin also ships the machship-freight skill. The skill teaches Claude the freight workflow with exact tool names: rates, consignment, labels, manifest and tracking. It also tells Claude to ask you before it books, manifests or deletes.

Install it from this repo's marketplace (Claude Code 2.1.275 or later):

bash
/plugin install machship --marketplace devkindhq/machship-mcp

The plugin will also be in the Claude plugin directory once it is listed. On older Claude Code versions, use the claude mcp add command in the Quickstart.

HTTP mode

bash
MACHSHIP_API_TOKEN=your-token TRANSPORT=http npx -y @devkind/machship-mcp
  • MCP endpoint: POST http://localhost:3000/mcp (Streamable HTTP, stateless, JSON responses)
  • Health check: GET http://localhost:3000/health

By default the server listens on 127.0.0.1 only. It rejects requests whose Host header is not localhost, 127.0.0.1 or ::1, which blocks DNS rebinding attacks from web pages. Set MCP_HOST=0.0.0.0 to listen on all interfaces, for example in a container.

Warning: HTTP mode has no authentication, and every request uses the server's Machship token. If you set MCP_HOST to anything other than a loopback address, put an authenticating proxy in front of the server.

Security notes

  • HTTP mode has no authentication. See HTTP mode before you set MCP_HOST.
  • Tools can create, edit and delete live consignments, identities and organisation links. Tool annotations mark the delete and remove tools as destructive, so a client can ask you to confirm them. machship_update_identity sets omitted fields to null.
  • Use a token with the smallest Machship permissions that your work needs.

Development

This repo uses Yarn 1 (yarn.lock). Do not use npm install.

bash
git clone https://github.com/devkindhq/machship-mcp.gitcd machship-mcpyarn installyarn lint && yarn buildMACHSHIP_API_TOKEN=your-token yarn start

See CONTRIBUTING.md for the checks, commit style and release flow.

Built by

Built by Devkind. Maintained by the Devkind team.

License

ISC. See CONTRIBUTING.md and SECURITY.md.

Automating freight for your store?

If you ship with Machship, Devkind can connect it to the rest of your stack. We build on Shopify, Swell and headless commerce stacks, and build custom MCP servers and AI agent workflows. Talk to Devkind or email [email protected].

来源:README.md,提交 e81df65

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.4.0最新Nov 3, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分