Docs menu: Set up with AI tools (MCP)

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

MCP server (Streamable HTTP, OAuth)
https://mcp.creditkit.dev

The 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 Code
claude mcp add --transport http creditkit https://mcp.creditkit.dev
Codex CLI (opens the sign-in page)
codex mcp add creditkit --url https://mcp.creditkit.dev
Gemini CLI
gemini mcp add --transport http creditkit https://mcp.creditkit.dev
Cursor: ~/.cursor/mcp.json
{
  "mcpServers": {
    "creditkit": { "url": "https://mcp.creditkit.dev" }
  }
}
VS Code: .vscode/mcp.json
{
  "servers": {
    "creditkit": { "type": "http", "url": "https://mcp.creditkit.dev" }
  }
}
Antigravity: Manage MCP Servers → View raw config
{
  "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

Example (Next.js / Node / any stack)
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.
Example (Lovable / Bolt with Supabase)
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_projectSee your projects; create one and get its Test Mode keys.
get_test_keysA project's Test Mode keys as .env lines.
set_action, remove_actionAdd or change an action and its credit cost (and, optionally, what it costs you to run).
set_free_creditsFree credits for signed-in users: once, daily or monthly.
set_packsThe packs and plans users can buy, with a warning if a bigger pack is worse value.
get_setup_codeInstall steps and code for your stack and login library.
check_setupWhich setup steps CreditKit has seen working, and what to do next.
get_user_balance, list_user_transactionsLook up a user's credits and history.
list_webhook_events, retry_webhookDebug 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.