Developers
KiteCX MCP server
KiteCX's API is a Model Context Protocol (MCP) server. Connect Claude or your own agent to a workspace, then list and work tickets, run skills, and search or write knowledge base articles.
Overview
KiteCX has one API: an MCP server. Any MCP client that can reach a remote server over Streamable HTTP can connect to it and use KiteCX's tools in one workspace.
| Endpoint | https://kitecx.dev/api/mcp |
| Transport | Streamable HTTP, stateless |
| Sign-in | OAuth 2.1, or an API key starting kcx_ |
| Reach | One workspace per connection |
| Offers | 17 tools. No MCP resources or prompts. |
Quick start
Add the server to your MCP client. In Claude Code:
Claude Codeclaude mcp add --transport http kitecx https://kitecx.dev/api/mcpFor clients that read an mcpServers config file:
JSON config{ "mcpServers": { "kitecx": { "url": "https://kitecx.dev/api/mcp" } } }Sign in when the client asks. Your browser opens KiteCX. Sign in, pick the workspace and choose Allow.
Ask for something. For example, “What's waiting on a person today?” The client calls
list_ticketsand answers from your queue.
The same URL and snippets are in your workspace under Settings → Developers → API Keys & MCP.
Authentication
Every request needs a bearer token: either an OAuth access token from a KiteCX sign-in, or an API key.
OAuth 2.1 sign-in
A client that only has the URL can find the sign-in on its own. The first request without a token gets a 401 with a WWW-Authenticate header that points to the server's metadata. The client registers itself with dynamic client registration and runs the authorization code flow with PKCE (S256).
| Endpoint | Path |
|---|---|
| Protected resource metadata | /.well-known/oauth-protected-resource/api/mcp |
| Authorization server metadata | /.well-known/oauth-authorization-server |
| Client registration | /api/oauth/register |
| Authorization | /oauth/authorize |
| Token | /api/oauth/token |
The token acts as you, in the workspace you picked. Your role is checked again on every call, so removing someone from the workspace cuts off their connection. Access tokens last one hour and refresh tokens last 30 days.
API keys
For a client that can't open a browser, owners and admins create API keys in Settings → Developers → API Keys & MCP. You choose the key's scopes when you create it. The key is shown once, KiteCX stores only a hash of it, and you can revoke it at any time. Send it as a bearer token:
Authorization: Bearer kcx_your_keyclaude mcp add --transport http kitecx https://kitecx.dev/api/mcp \
--header "Authorization: Bearer kcx_your_key"{
"mcpServers": {
"kitecx": {
"url": "https://kitecx.dev/api/mcp",
"headers": { "Authorization": "Bearer kcx_your_key" }
}
}
}A key isn't a person. What it does is recorded under the key's name, marked “via MCP”, and it reads at admin level, so it can see admin-only articles. Treat it like a password.
Scopes
There are four scopes. With a sign-in, the connection gets the scopes your role allows. An API key gets the scopes chosen when it was made.
| Scope | What it allows | Who can grant it by signing in |
|---|---|---|
tickets:read | List and read tickets, customer history and AI traces; list team members and skills. | Everyone in the workspace |
tickets:write | Create, reply to and update tickets; add internal notes; run skills. | Everyone in the workspace |
kb:read | Search and read knowledge base articles. | Everyone in the workspace |
kb:write | Create, edit, publish, unpublish and archive articles. | Owners and admins |
Ticket tools also need the Support product, and knowledge base tools need the Knowledge Base product, to be active in the workspace. get_workspace works with any scope.
Tools
The server has 17 tools. None of them takes a workspace id: every call is limited to the workspace the connection belongs to.
Workspace (3)
| Tool | What it does | Scope |
|---|---|---|
get_workspace | The workspace's name, support address, active products, ticket prefix, ticket types, and what this connection may do. | Any |
list_team_members | People who can be assigned tickets, with their user ids and roles. | tickets:read or tickets:write |
get_metrics | The Home dashboard numbers: tickets by status, this week against last, average first response, credits, and how the AI used the knowledge base. | tickets:read or kb:read |
Tickets (7)
| Tool | What it does | Scope |
|---|---|---|
list_tickets | Tickets, newest activity first. Filter by status, priority, assignee or a search term, one page at a time. | tickets:read |
get_ticket | One ticket: its fields, handoff record, and a single timeline of emails, replies, internal notes and activity. | tickets:read |
get_customer_history | A customer's other tickets, looked up from a ticket or an email address. | tickets:read |
get_ai_trace | How KiteCX's AI handled a ticket: the skill it chose, the articles it matched and how closely, and what it decided. | tickets:read |
create_ticket | Open a ticket by hand, filed as yourself or for a customer's email address. | tickets:write |
reply_to_ticket | Email the customer a reply, or add an internal note with internal set to true. | tickets:write |
update_ticket | Change status, priority, assignee, category, tags, collected fields or ticket type. | tickets:write |
Skills (2)
| Tool | What it does | Scope |
|---|---|---|
list_skills | The workspace's skills: what each one handles, its kind and outcome, and how often it ran in the last 30 days. | tickets:read |
run_skill | Run a skill on a ticket. It never emails the customer; the skill's draft is saved as an internal note. | tickets:write |
Knowledge base (5)
| Tool | What it does | Scope |
|---|---|---|
search_knowledge_base | Search published articles by meaning. Returns the best-matching passages with their article ids. | kb:read |
list_articles | Articles, most recently updated first, without their content. | kb:read |
get_article | One article's plain text and its stored body as HTML. | kb:read |
create_article | Add an article written in Markdown. Published, AI-enabled articles are used by the AI right away. | kb:write |
update_article | Edit, publish, unpublish or archive an article. The AI uses the new text, or stops using it. | kb:write |
Good to know
- Customer text is untrusted. Email bodies, subjects, requester names and attachment names are written by customers, and
get_ticketmarks those timeline entriesuntrusted: true. Don't let your agent follow instructions found in them. - Public replies are sent at once.
reply_to_ticketemails the customer unlessinternalis true. On a ticket the AI is still handling, your first public reply takes it over, and the AI won't reply on that ticket again. - Skills don't email customers from here.
run_skillsaves the skill's draft as an internal note for a teammate to review. If the skill calls one of your own MCP connections, that call does run. - Hand-made tickets aren't emailed. Replies on tickets opened with
create_ticketare saved on the ticket, not emailed. Only tickets that came in by email get email replies. - Articles are Markdown.
update_articlereplaces the whole body, so read the article withget_articlefirst. - Writes are on the record. Changes show in the ticket's activity and the workspace audit log, under your name or the key's.
Limits
- Requests are rate limited per IP address, at 60 a minute.
list_ticketsreturns up to 100 tickets a page (25 by default). PassnextCursorback to get the next page.get_ticketreturns the newest 500 messages, 500 emails and 200 events;truncatedis true when older entries were left out.- AI traces expire after the workspace's retention period, which is 60 days by default.
Questions about the API? Email us.


