API & MCP reference / MCP server

Connecting a client

In Claude, add a custom connector with the URL below. There is no key to paste: Claude registers itself, sends you to Post Train to sign in, and you choose what to grant.

Connector URL
https://posttrain.app/api/mcp
Claude Code
claude mcp add --transport http posttrain https://posttrain.app/api/mcp

Scripts and CI can skip the browser flow entirely and send an API key to the same endpoint:

bash
curl -X POST https://posttrain.app/api/mcp \
  -H "Authorization: Bearer pt_live_…" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Connecting a client — API & MCP Reference · Post Train