Set up with AI tools (MCP)
Connect your AI tool to CreditKit and let it do the setup: create a project, set what each action costs, add the code to your app and check that everything works. You approve access with your CreditKit account, and the tool only ever gets Test Mode keys.
Server URL
https://mcp.creditkit.devThe first time you use it, your tool opens a CreditKit page asking you to allow access. Sign in, click Allow access, and you're connected.
Install in one click
Opens your editor with CreditKit filled in. Approve it there, then sign in to CreditKit the first time a tool runs.
Add it to your tool
Claude (claude.ai or the desktop app): Settings → Connectors → Add custom connector, then paste the server URL. ChatGPT: turn on Developer mode, then add a connector with the same URL.
claude mcp add --transport http creditkit https://mcp.creditkit.devcodex mcp add creditkit --url https://mcp.creditkit.devgemini mcp add --transport http creditkit https://mcp.creditkit.dev{
"mcpServers": {
"creditkit": { "url": "https://mcp.creditkit.dev" }
}
}{
"servers": {
"creditkit": { "type": "http", "url": "https://mcp.creditkit.dev" }
}
}{
"mcpServers": {
"creditkit": { "serverUrl": "https://mcp.creditkit.dev" }
}
}Lovable: Connectors → Add custom → MCP server. Bolt: Connectors (MCP) → Custom MCP server. v0: Settings → MCP Servers → Add server. Devin Desktop (Windsurf): MCP Marketplace → Add custom MCP. Use the server URL with OAuth sign-in. Any other client that supports MCP over HTTP with OAuth works the same way.
Then ask it
Add CreditKit to this app. Charge 5 credits each time a user generates an image,
give new users 20 free credits, and sell a 100-credit pack for $5.
Then check the setup until every step is done.Connect CreditKit using the MCP server. Charge 5 credits per AI generation in a
Supabase Edge Function (holding credits before the AI call and refunding if it fails),
load creditkit.js in index.html signed with the logged-in Supabase user ID,
give new users 20 free credits, and sell a 100-credit pack for $5.
Then run check_setup until every step is done.What it can do
| list_projects, create_project | See your projects; create one and get its Test Mode keys. |
| get_test_keys | A project's Test Mode keys as .env lines. |
| set_action, remove_action | Add or change an action and its credit cost (and, optionally, what it costs you to run). |
| set_free_credits | Free credits for signed-in users: once, daily or monthly. |
| set_packs | The packs and plans users can buy, with a warning if a bigger pack is worse value. |
| get_setup_code | Install steps and code for your stack and login library. |
| check_setup | Which setup steps CreditKit has seen working, and what to do next. |
| get_user_balance, list_user_transactions | Look up a user's credits and history. |
| list_webhook_events, retry_webhook | Debug your webhook endpoint and resend failed events. |
What it can't do
See or use your live keys, connect Stripe, change your plan, move money or delete projects. Those stay in the console. It only sees projects in your own account.
To disconnect a tool, open Keys & webhooks → AI tools in the console. Access tokens last an hour and renew for up to 30 days of use.