[Home](https://www.ringkit.com/) / Connect your agent

# Connect your agent

**RingKit's MCP server is at `https://api.ringkit.com/mcp`. Pick how you're connecting.** It speaks Streamable HTTP, is stateless, and takes POST only. An agent with a business API key sends `Authorization: Bearer rk_…`. An agent with no key can still call one tool, `ringkit_create_business`, and gets a key back. Claude and ChatGPT connectors sign in with OAuth instead. There are no SDKs.

- [**Claude Code** One command in your terminal](#claude-code)

- [**Cursor** A JSON file and a key in the environment](#cursor)

- [**Claude chat** Custom connector, owner signs in](#claude)

- [**ChatGPT** Connector, owner signs in](#chatgpt)

- [**I have an API key** Any MCP client, or plain HTTP](#api-key)

- [**No key yet** Create the business, then hand off payment](#no-key)

## Claude Code

For you if you run Claude Code in a terminal and hold an `rk_` key, or are about to get one.

1. Run this in the project the config should belong to. Replace `rk_…` with your key.

```
claude mcp add --transport http ringkit https://api.ringkit.com/mcp --header "Authorization: Bearer rk_…"
```

2. No key yet? Leave `--header` off and follow [No key yet](#no-key). Do not invent a key or paste the placeholder.

3. The command stores the server in local scope: you, in this project. `--scope user` is you, in every project. Do not use `--scope project` with a live key. It writes `.mcp.json`, which is the file you commit.

4. Editing JSON by hand? Add `"type": "http"` to the entry. Claude Code skips an entry with a `url` and no `type`.

**First call:** `ringkit_whoami` to see which business the key opens, then `ringkit_get_onboarding` to see what is still empty.

**Needs a person:** paying the checkout link from `ringkit_top_up`, and reading back the 6-digit code from `ringkit_verify_destination`.

Full guide: [Claude Code MCP phone receptionist](https://www.ringkit.com/blog/claude-code-mcp)

## Cursor

For you if you want RingKit's tools inside Cursor. The key stays in the environment, not in the file.

1. Create `.cursor/mcp.json` in the project (this repo only) or `~/.cursor/mcp.json` (every project):

```
{
  "mcpServers": {
    "ringkit": {
      "url": "https://api.ringkit.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:RINGKIT_READ_KEY}"
      }
    }
  }
}
```

2. Set `RINGKIT_READ_KEY` in the environment Cursor starts from, then restart Cursor. Remote servers do not read an `envFile`. Leave `command` out: the server already runs at the URL.

3. For reporting, use a read key. Make one once with your manage key:

```
curl https://api.ringkit.com/v1/businesses/$BIZ/api-keys \
  -H "Authorization: Bearer $RINGKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Cursor reporting", "scope": "read" }'
```

4. Doing setup from Cursor? Put the manage key in the variable only while you write the brief and order the number. A read key gets `403 insufficient_scope` on anything but a read.

**First call:** `ringkit_whoami`. It shows the business and the key's scope (`manage` or `read`). Then `ringkit_get_onboarding`.

**Needs a person:** paying the checkout link, and reading back the verification code. Leave Cursor's prompt before each tool call switched on.

Full guide: [Cursor MCP server for a phone line](https://www.ringkit.com/blog/cursor-mcp-server)

## Claude chat (claude.ai connector)

For a business owner who uses Claude chat and wants to sign in instead of handling an API key.

1. Add a custom connector in Claude with this URL. Do not add an API key to it.

```
https://api.ringkit.com/mcp/oauth
```

2. Claude starts the sign-in. Sign in with the owner's email if asked. If anything asks for a host other than `api.ringkit.com`, stop.

3. On the consent screen, pick the business. Only an owner can approve. Leave the default `ringkit.read` to let Claude look, or approve `ringkit.manage` to let it change settings.

4. Disconnect any time at `https://api.ringkit.com/oauth/connections`.

**First call:** `ringkit_get_business`, then `ringkit_get_onboarding`.

**Know this:** a connector works for exactly one existing business. It hides `ringkit_create_business`, the API-key tools, and `ringkit_invite_owner`. No business yet? Start at [app.ringkit.com](https://app.ringkit.com), or have an agent use [No key yet](#no-key) first, then connect. A read connection that tries a change gets `insufficient_scope`; reconnect with manage.

**Needs a person:** the owner approves the connector, pays any checkout link, and reads back the verification code.

Full guide: [Add a Claude phone connector](https://www.ringkit.com/blog/claude-phone-connector)

## ChatGPT connector

For a business owner who uses ChatGPT and wants it to read or manage the receptionist's settings.

1. Add a connector in ChatGPT with this URL. `https://api.ringkit.com/mcp` also works for ChatGPT.

```
https://api.ringkit.com/mcp/oauth
```

2. Sign in and approve on the consent screen: pick the business, then `ringkit.read` (the default) or `ringkit.manage`. Only an owner can approve. Do not approve a host that is not `api.ringkit.com`.

3. Test it. Ask for something a read token allows, like the business details. Then ask for a change and, on a read token, expect `insufficient_scope`.

**First call:** `ringkit_get_business`, then `ringkit_get_onboarding`.

**Know this:** ChatGPT does not answer your phone. The RingKit receptionist does. The connector covers one existing business and hides business creation, API keys, and owner invites. Never paste an API key into the chat.

**Needs a person:** the owner approves the connector, pays any checkout link, and reads back the verification code.

Full guide: [Add a ChatGPT phone connector](https://www.ringkit.com/blog/chatgpt-phone-connector)

## I have an API key

For an agent or script that already holds an `rk_` key, in any MCP client or over plain HTTP.

1. MCP clients (Claude Desktop, Cursor and others) take this shape. Some clients also need `"type": "http"`.

```
{
  "mcpServers": {
    "ringkit": {
      "url": "https://api.ringkit.com/mcp",
      "headers": { "Authorization": "Bearer rk_…" }
    }
  }
}
```

2. Plain HTTP works too. The REST API is `https://api.ringkit.com/v1`. Check the key:

```
curl https://api.ringkit.com/v1/me \
  -H "Authorization: Bearer $RINGKIT_API_KEY"
```

3. Know the key's scope. `manage` acts as the owner. `read` can only read. Give a reporting tool a read key.

4. Follow the setup order: teach (`ringkit_start_knowledge_import` or `ringkit_put_knowledge`), voice (`ringkit_list_voices`), routing (`ringkit_put_routing`), try (`ringkit_simulate_call`), fund (`ringkit_top_up`), number (`ringkit_search_numbers`, `ringkit_provision_number`), test call (`ringkit_verify_destination`, `ringkit_confirm_destination`, `ringkit_test_call`).

**First call:** `ringkit_whoami`, then `ringkit_get_onboarding`. Every result has a `next` field naming the usual next tool. Every error is `{"error":{"code","message","hint","docs"}}`: do what `hint` says. Mutating tools take an optional `idempotencyKey`; reuse it only to retry the same request.

**Needs a person:** paying the checkout link, and reading back the 6-digit code. See [where setup stops](#no-key) without payment.

Full guides: [MCP phone receptionist](https://www.ringkit.com/blog/mcp-phone-receptionist) (tool order) and [AI receptionist API](https://www.ringkit.com/blog/ai-receptionist-api) (REST)

## No key yet

For an agent starting from nothing: no account, no key, and a business owner who wants a receptionist.

1. Connect to `https://api.ringkit.com/mcp` with no `Authorization` header. In Claude Code:

```
claude mcp add --transport http ringkit https://api.ringkit.com/mcp
```

2. Ask the owner for the business name, an IANA timezone, their email, and the website if there is one. Then make the first call, `ringkit_create_business`. Leave `ownerPhone` off: create refuses it with `403 destination_unverified`.

```
ringkit_create_business
{
  "name": "Northside Example",
  "timezone": "America/Phoenix",
  "ownerEmail": "owner@example.com",
  "website": "https://northside.example"
}
```

3. What comes back: the business (save `business.id`) and `apiKey`, an `rk_` key with scope `manage`. The key is shown once. Store it before anything else. Without MCP, `POST https://api.ringkit.com/v1/businesses` does the same and is the only REST call that needs no key.

4. Reconnect with the key in the header. Every other tool needs it.

```
claude mcp add --transport http ringkit https://api.ringkit.com/mcp --header "Authorization: Bearer rk_…"
```

5. Call `ringkit_whoami`, then `ringkit_get_onboarding`. Then set up everything that does not need money (table below).

6. Call `ringkit_top_up` with `amountCents` of at least `1000`. It returns a `checkoutUrl`. You cannot pay it. Give it to the owner with the message below, and ask early.

7. After the owner pays, call `ringkit_get_wallet` and confirm the paid balance. Then order the number, verify the owner's phone, and place a test call.

### What the agent can do before payment

| Step | Tools |
| --- | --- |
| Teach the receptionist | `ringkit_start_knowledge_import` with the website, `ringkit_put_knowledge`, `ringkit_patch_knowledge`, the setup chat, `ringkit_upload_knowledge_document` |
| Pick a voice | `ringkit_list_voices`, then `ringkit_update_business` |
| Set transfers | `ringkit_put_routing` with `mode` `ai_only` and the owner's team numbers |
| Check progress | `ringkit_get_onboarding` (its `paymentRequired` field stays `true` until the owner pays or saves a card) |
| Get the payment link | `ringkit_top_up` |
| Invite the owner (optional) | `ringkit_invite_owner` emails them a sign-in link |

### Where it stops until the owner pays

| Tool | What happens without payment |
| --- | --- |
| `ringkit_simulate_call` | Billed from the wallet at $0.20 a minute. If the wallet cannot cover a minute, the simulated call ends at once: `ended: true` and a "line is temporarily unavailable" reply, not an error code. |
| `ringkit_provision_number` | `402 funding_required` until there is $2 of paid credit. |
| `ringkit_verify_destination`, `ringkit_test_call` | `409 number_required`: they call from the business's RingKit number, so they wait for the number. |
| `ringkit_complete_onboarding` | `402 payment_required` until the owner saves a payment method or pays a top-up. |

### What to tell the owner

Send this, with the real link and email filled in:

```
I set up your RingKit receptionist, but it cannot take calls until you add a payment method. Open this link and pay at least $10: <checkoutUrl>. Or sign in at https://app.ringkit.com with <owner email> to add a card and see the setup. Calls cost $0.20 a minute, the first 10 seconds are free, and the phone number is $1.99 a month, all from that prepaid balance.
```

Then stop and wait. Do not say payment, activation, or a call worked until a tool confirms it. There is no free trial. On `402 funding_required` after they say they paid, the payment has not landed yet: check `ringkit_get_wallet` again, and retry the order with the same `idempotencyKey`.

**The second human step:** `ringkit_verify_destination` rings the owner's phone and reads a 6-digit code. That code is their consent to be called. Ask them for it, send it with `ringkit_confirm_destination`, then `ringkit_test_call`. Never invent the code.

Full guides: [MCP phone receptionist](https://www.ringkit.com/blog/mcp-phone-receptionist) and [AI agent phone number](https://www.ringkit.com/blog/ai-agent-phone-number)

## Endpoints

| Endpoint | Auth | When to use |
| --- | --- | --- |
| `https://api.ringkit.com/mcp` | `Authorization: Bearer rk_…`, an OAuth token, or none (only `ringkit_create_business` works with none) | Claude Code, Cursor, any client with a key, an agent with no key yet, ChatGPT |
| `https://api.ringkit.com/mcp/oauth` | OAuth only. Answers 401 with no token, which starts sign-in | Claude custom connector, ChatGPT |
| `https://api.ringkit.com/v1` | `Authorization: Bearer rk_…`; none for `POST /v1/businesses` | Scripts and plain HTTP |
| `https://api.ringkit.com/.well-known/oauth-protected-resource/mcp` | None | OAuth discovery. Clients read it; you do not type it |
| `https://api.ringkit.com/.well-known/mcp.json` | None | Tool list, steps, and how to authenticate |
| `https://app.ringkit.com` | Owner sign-in | The owner's dashboard: paying and adding a card |

Pricing: $0.20 a minute while the receptionist is on a call, first 10 seconds free, then 6-second increments. $1.99 a month per number. Prepaid wallet, $10 minimum top-up. A payment method is required to activate. See [pricing](https://www.ringkit.com/pricing) and the [agent docs](https://www.ringkit.com/docs#agents).
