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.
https://posttrain.app/api/mcpclaude mcp add --transport http posttrain https://posttrain.app/api/mcpScripts and CI can skip the browser flow entirely and send an API key to the same endpoint:
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"}'