@kama/mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@kama/mcp-servercreate a new contact for Acme Corp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@kama/mcp-server
MCP server for Kama CRM — Talk to your AI agent instead of clicking.
Connect Claude Code, OpenCode, Cline, or any MCP-compatible client directly to your Kama instance. The server auto-discovers all your API endpoints via the OpenAPI spec and exposes them as MCP tools.
Quick Start
# One command — no install needed
KAMA_URL=https://your-kama.com KAMA_API_TOKEN=xxx npx @kama/mcp-serverRelated MCP server: OpenAPI MCP Server
Installation
Via npm (recommended for repeated use)
npm install -g @kama/mcp-server
kama-mcp
# Then configure KAMA_URL and KAMA_API_TOKEN in your environmentVia npx (zero install)
Add to your MCP client config — it auto-installs on first run.
Configuration
Variable | Required | Default | Description |
| ✅ | — | Your Kama instance URL (e.g. |
| ✅ | — | Bearer token for API authentication |
| ❌ |
| Enable debug logging to stderr ( |
| ❌ |
| Request timeout in seconds |
| ❌ |
| Server name reported to MCP client |
Getting an API Token
Log into your Kama instance as admin
Go to Settings → API Keys (or equivalent)
Create a new API key
Copy the token — it's your
KAMA_API_TOKEN
💡 The token must belong to a user with sufficient permissions. The MCP server respects all Kama access controls — users can only do what they have permission to do.
Usage with AI Clients
Claude Code (.claude.json)
{
"mcpServers": {
"kama": {
"command": "npx",
"args": ["@kama/mcp-server"],
"env": {
"KAMA_URL": "https://your-kama.com",
"KAMA_API_TOKEN": "your-token-here"
}
}
}
}OpenCode (opencode.json)
{
"mcpServers": {
"kama": {
"command": "npx",
"args": ["@kama/mcp-server"],
"env": {
"KAMA_URL": "https://your-kama.com",
"KAMA_API_TOKEN": "your-token-here"
}
}
}
}Cline (cline_mcp_settings.json)
{
"mcpServers": {
"kama": {
"command": "npx",
"args": ["@kama/mcp-server"],
"env": {
"KAMA_URL": "https://your-kama.com",
"KAMA_API_TOKEN": "your-token-here"
}
}
}
}VS Code (via Continue or Cline extension)
Same config format in the extension's MCP settings file.
How It Works
Your AI Agent (Claude/OpenCode/Cline)
│
│ stdio (JSON-RPC 2.0)
▼
@kama/mcp-server
│
│ 1. Fetches OpenAPI spec from GET /api/docs
│ 2. Auto-generates MCP tools for every endpoint
│ 3. Proxies tool calls as HTTP requests
│
▼
Kama REST API
│
▼
Kama Services / DatabaseOn startup, the server fetches
GET /api/docsfrom your Kama instanceIt parses the OpenAPI 3.0.1 spec and creates one MCP tool per API endpoint
Your AI agent discovers all 200+ tools via
tools/listWhen the agent calls a tool, the server proxies the request to your Kama API
All requests use your API token — permissions are enforced by Kama
Tool Naming Convention
Tools are automatically named based on the method, tag, and path:
kama_{method}_{category}_{action}
Examples:
kama_get_clients_list → GET /clients
kama_post_clients_create → POST /clients
kama_get_clients_show → GET /clients/{id}
kama_put_clients_update → PUT /clients/{id}
kama_delete_clients_delete → DEL /clients/{id}
kama_get_invoices_list → GET /invoices
kama_post_tickets_store → POST /tickets
kama_get_settings_index → GET /settingsFeatures
Zero configuration — auto-discovers your entire API from the OpenAPI spec
Always up-to-date — tools reflect your actual Kama API, no manual sync
Permission-aware — respects Kama's access control, users can only do what they're allowed
Read-only hints — GET endpoints are marked read-only for safe exploration
Language-agnostic — works with any MCP client (Claude Code, OpenCode, Cline, Continue, etc.)
Cross-platform — runs anywhere Node.js 18+ runs (Linux, macOS, Windows)
Lightweight — zero npm dependencies, pure Node.js
Resources
Support
Phone:
05144228000Email: via Kama website
FAQ
Q: Does this require a plugin installed on Kama? No. The MCP server is completely standalone. It only needs HTTP access to the Kama REST API.
Q: Are all endpoints exposed?
Every route in /api/docs becomes an MCP tool. This includes public endpoints (login, docs) and authenticated endpoints.
Q: Is it safe? Yes. The MCP server uses your API token and respects all Kama permissions. Users can only perform actions they already have permission for. Write operations are clearly distinguished from read-only operations.
Q: Does it work with Cloud Kama instances?
Yes. Set KAMA_URL to your cloud instance URL. The server connects over standard HTTPS.
Q: My API token expires, what then? Restart the MCP server with a fresh token. Most Kama API tokens are long-lived.
Q: Too many tools? The auto-discovery includes everything. You can configure your MCP client to only expose specific tools if needed.
Development
git clone https://github.com/AsemanServer/kama-mcp-server.git
cd mcp-server
# Run directly
KAMA_URL=https://your-kama.com KAMA_API_TOKEN=xxx node bin/kama-mcp.js
# Test with a sample input
echo '{"jsonrpc":"2.0","id":1,"method":"list_tools"}' | KAMA_URL=... KAMA_API_TOKEN=... node bin/kama-mcp.jsLicense
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA generic MCP server that dynamically converts OpenAPI-defined REST APIs into tools for LLMs like Claude. It supports multiple authentication methods and transport protocols, enabling seamless interaction with any OpenAPI-compliant API.Last updated28MIT
- AlicenseAqualityDmaintenanceA generic MCP server that dynamically exposes any OpenAPI-documented REST API to LLMs by auto-discovering endpoints. It provides tools for exploring API capabilities and making authenticated requests directly through natural language interfaces.Last updated22MIT
- AlicenseCqualityCmaintenanceMCP server that turns OpenAPI specs into tools and calls APILast updated1115MIT
- Alicense-qualityCmaintenanceA generic MCP server that converts any OpenAPI/Swagger specification into MCP tools, enabling AI assistants to search, explore, and execute REST APIs.Last updatedMIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AsemanServer/kama-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server