Guides
Connect an AI assistant (MCP)
Let Claude, Cursor or any MCP client create test users and simulate wallet activity through your API key.
Tilt Pay runs a remote MCP server at https://sdk.tilt-pay.com/mcp. Once connected, your AI assistant can call the API for you: create a test user, list its wallets, simulate a deposit, a payment or a withdrawal. Without it, an assistant can only read this documentation.
Every tool calls the /v1 API with the key you connect with. A test key (tp_test_…) only touches sandbox data; rate limits, idempotency and the sandbox restrictions apply exactly as for direct calls.
Keep the key out of the conversation#
Put the key in an environment variable and let the client read it. Never paste it into a prompt, a chat or a repository.
export TILT_PAY_API_KEY="tp_test_…"Claude Code#
claude mcp add --transport http tilt-pay https://sdk.tilt-pay.com/mcp \
--header "Authorization: Bearer $TILT_PAY_API_KEY"Cursor#
Add this to .cursor/mcp.json:
{
"mcpServers": {
"tilt-pay": {
"url": "https://sdk.tilt-pay.com/mcp",
"headers": { "Authorization": "Bearer ${env:TILT_PAY_API_KEY}" }
}
}
}Any other client#
Use the Streamable HTTP transport, the URL https://sdk.tilt-pay.com/mcp and the header Authorization: Bearer <key>.
What the assistant can do#
One tool per API route, with the exceptions below: getMe, createUser, listUsers, getUser, listUserWallets, listUserTransactions, simulateUser, and the rest of the reference. Start with getMe to confirm the key and its environment.
The phone verification routes (they send real text messages) are not exposed as tools, so an assistant can never trigger SMS in a loop. The route that returns the OpenAPI document has no tool either: it is public at /v1/openapi.json.
Limits#
The MCP endpoint accepts up to 120 requests per minute per key, on top of the API quota that every tool call consumes. Beyond that you receive 429 with Retry-After.
Going further#
Read the full documentation as one text file at /llms-full.txt, or hand your assistant the ready-made prompt shown on the API keys page.