kimss
Kimss Python SDK & MCP server
Lightweight client for the Kimss API — call agents, run model completions, upload files, and manage vector stores from Python. Optional Model Context Protocol (MCP) server for Cursor, Windsurf, Claude Desktop, and other MCP-capable clients.
AI assistants: read docs/llm-context.md or the repo root .llms.txt for dense integration context.
Cursor Marketplace plugin
This repository includes a Cursor plugin layout for Cursor Marketplace submission alongside the PyPI package:
Path | Purpose |
Plugin manifest ( | |
MCP server template ( | |
Product and API conventions for assistants | |
Python SDK integration skill | |
MCP wiring and troubleshooting skill | |
Slash commands: | |
1:1 marketplace logo (Kimss wordmark on a plate, from product art); |
Legacy Open Plugins metadata remains under .plugin/plugin.json and mcpb/manifest.json. The root .mcp.json matches mcp.json for environments that read dot-prefixed MCP config.
Related MCP server: firepass-mcp
Cursor & Windsurf (MCP) — zero local venv with uvx
Install the MCP extra on the fly and expose tools to your IDE:
{
"mcpServers": {
"kimss": {
"command": "uvx",
"args": ["--from", "kimss[mcp]", "kimss-mcp-server"],
"env": {
"KIMSS_API_KEY": "your_key_here",
"KIMSS_BASE_URL": "https://api.kimss.ai",
"KIMSS_WORKSPACE_ID": ""
}
}
}
}Set
KIMSS_API_KEYto a long-lived key from Developer Settings → API Keys (never commit it).Optional
KIMSS_WORKSPACE_IDstampsX-Workspace-ID/tenant_idfor workspace-scoped calls.MCP tools are non-streaming in v1 (
kimss_chat,kimss_create_agent,kimss_run_agent,kimss_complete,kimss_upload_file,kimss_create_vector_store,kimss_add_function_to_agent).
Alternatively, after pip install 'kimss[mcp]', use "command": "kimss-mcp-server" on your PATH with the same env.
Windsurf Integration
To use Kimss natively inside Codeium Windsurf as an MCP toolset, add the configuration to your local Windsurf settings:
Open your global Windsurf MCP configuration file:
macOS/Linux:
~/.codeium/windsurf/mcp_config.jsonWindows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json
Append the
kimssconfig block to themcpServersobject:
{
"mcpServers": {
"kimss": {
"command": "uvx",
"args": ["--from", "kimss[mcp]", "kimss-mcp-server"],
"env": {
"KIMSS_API_KEY": "your_api_key_here",
"KIMSS_BASE_URL": "https://api.kimss.ai"
}
}
}
}Reload Windsurf. The
kimsstools appear under the MCP toolset once the server starts.
Note: use
uvx --from kimss[mcp] kimss-mcp-server(not--with).--fromtellsuvxto install thekimsspackage and run itskimss-mcp-serverconsole script;--withwould makeuvxlook for a (nonexistent) PyPI package literally namedkimss-mcp-server.
Claude Desktop Integration
Connect Kimss agents as MCP tools inside Claude Desktop:
Install
uvsouvxis on yourPATH(or usepip install 'kimss[mcp]'and set"command": "kimss-mcp-server"instead).Create a long-lived API key in the Kimss app: Developer Settings → API Keys.
Open the MCP config: Claude Desktop → Settings → Developer → Edit Config (preferred — opens the correct
claude_desktop_config.jsonfor your install). Typical paths if you edit by hand:macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows (classic installer):
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Merge the
kimssblock intomcpServers(keep any existing servers):
{
"mcpServers": {
"kimss": {
"command": "uvx",
"args": ["--from", "kimss[mcp]", "kimss-mcp-server"],
"env": {
"KIMSS_API_KEY": "your_api_key_here",
"KIMSS_BASE_URL": "https://api.kimss.ai",
"KIMSS_WORKSPACE_ID": ""
}
}
}
}Fully quit and relaunch Claude Desktop. Confirm Kimss tools appear (hammer / MCP tools indicator in the chat composer).
Try it: ask Claude to list or run a Kimss agent (you need an asst_… id from the Kimss app), for example: “Use kimss_run_agent with my assistant id asst_xxxx and message Hello.”
Tip: On Windows Store / MSIX installs the config file can live under
%LOCALAPPDATA%\Packages\Claude_*\…instead of%APPDATA%\Claude\. Always prefer Settings → Developer → Edit Config so you edit the file Claude actually reads.
Legacy Desktop Extension metadata for MCP bundles lives under mcpb/manifest.json (same uvx --from kimss[mcp] kimss-mcp-server entrypoint).
Install (library)
pip install kimssOptional PII redaction (Microsoft Presidio + spaCy; e.g. python -m spacy download en_core_web_lg):
pip install 'kimss[privacy]'Other extras:
pip install 'kimss[mcp]' # MCP server (stdio)
pip install 'kimss[types]' # Pydantic (reserved for future typed models)
pip install 'kimss[dev]' # pytest, responses, ruffEditable from a checkout of this repository root:
pip install -e ".[dev,mcp]"Authentication
Use a long-lived API key (not a browser session token). Create keys in your Kimss app under Developer Settings → API Keys. The key is scoped to your tenant and user.
Headless workers can also authenticate with Microsoft Entra ID by passing an Azure credential plus a Kimss API token scope:
from azure.identity import DefaultAzureCredential
from kimss import KimssClient
client = KimssClient(
base_url="https://api.kimss.ai",
credential=DefaultAzureCredential(),
token_scope="api://<kimss-api-app-id>/.default",
workspace_id="<your-workspace-slug>",
)Usage
Use the canonical Kimss API host. Production is https://api.kimss.ai and staging is https://stg.kimss.ai; do not include a trailing slash.
from kimss import KimssClient, Agent
client = KimssClient(
api_key="kimss_xxxxxxxxxxxxxxxxxxxxxxxx", # from Developer Settings
base_url="https://api.kimss.ai", # no trailing slash
)
# Get an agent and send a message
agent = client.get_agent("asst_xxxx")
result = agent.query("Hello")
# result is the API "res" payload (messages, usage, etc.). Prefer conversation_id in SDK 2+.
result2 = agent.query("What did I just say?", conversation_id=result.get("thread_id"))
# One-off chat without an Agent handle (same wire field as above)
result3 = client.chat("asst_xxxx", "Hi", conversation_id=result.get("thread_id"))
# Or v1 orchestration (preferred): non-stream returns AgentRunResult (.text, .usage, .conversation_id)
result_v1 = client.agents.run("asst_xxxx", "Hello", stream=False)
print(result_v1.text, result_v1.usage.total_credits, result_v1.conversation_id)Streaming
client.models.create(..., stream=True) and client.agents.run(..., stream=True) return an SSE iterator of JSON objects. The MCP server does not expose streaming tools in v1.
API
KimssClient(..., retry=None)– authenticated client. Provide eitherapi_key(usesX-Kimss-Key) orcredential+token_scope(usesAuthorization: Bearer).workspace_idoptionally stampsX-Workspace-IDandtenant_idfor isolated worker telemetry. Uses arequests.Sessionwith retry on 5xx (not 429) and Retry-After by default so credit exhaustion and rate limits surface immediately as typed errors (KimssCreditExhausted,KimssRateLimited,KimssSubscriptionRequired).client.get_agent(agent_id)– returns anAgentfor that assistant.agent.query(message, conversation_id=None, chat_type="user_chat")– send a message; returns theresobject fromPOST /assistant_chat/.client.chat(assistant_id, message, conversation_id=None, chat_type="user_chat")– one-off chat without an Agent handle.client.agents.create/client.agents.run– v1 agent management and orchestration (/v1/agents/create,/v1/agents/run).agents.runaccepts positionals(assistant_id, message), keyword aliasesagent_id/prompt, optionalconversation_id(maps to JSONthread_id), optionaltagsandrouting_preference;stream=FalsereturnsAgentRunResult(dict subclass with.text,.usage.total_credits,.conversation_id) whenresis a dict.client.models.create–/v1/models/completions(Kimss{"res": ...}envelope).OpenAI-compatible HTTP (not wrapped by this client):
GET /v1/models,POST /v1/chat/completionsatbase_url+/v1withAuthorization: Bearer kimss_...— for OmniRoute, Cursor, Cline, oropenai.OpenAI(base_url="https://api.kimss.ai/v1", ...).client.files.upload–/v1/files/upload.client.vector_stores.create–/v1/vector_stores/create.before_request_hooks– list of callableshook(ctx)wherectxis{"path": str, "json": dict, "headers": dict}; hooks may mutatejson/headersbefore the HTTP POST.privacy– shortcut forPresidioRedactor()fromkimss.privacy(requireskimss[privacy]).
from kimss import KimssClient, PresidioRedactor
client = KimssClient(
api_key="kimss_...",
base_url="https://api.kimss.ai",
privacy=PresidioRedactor(),
)API-key requests use the X-Kimss-Key header. Credential requests use
Authorization: Bearer <token>. Non-streaming responses are full JSON dicts from the API res envelope where applicable.
Examples
See examples/ — set KIMSS_API_KEY (and KIMSS_ASSISTANT_ID / KIMSS_MODEL where noted).
Usage Hub (execution context)
For agent and model calls, the SDK automatically adds an optional X-Kimss-SDK-Context header (base64url JSON) with:
host_environment— e.g. AzureWEBSITE_SITE_NAME,GitHub:org/repo, orLocal/Devsource_location— best-effort path to the caller's Python file (relative togetcwd()when possible)resource_type/resource_name—agentormodelplus assistant id or model id
Paths are resolved in your process and sent as metadata for the workspace Usage dashboard. Use before_request_hooks to remove that header from ctx["headers"] if your policy forbids file paths.
Contributing & release
See CONTRIBUTING.md for tests, mirror workflow, and PyPI trusted publishing. Operator bookmark (monorepo): 3-step release routine.
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
- FlicenseAqualityFmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.Last updated53
- AlicenseAqualityAmaintenanceMCP server that turns Kimi K2.6 Turbo into an agentic coding assistant with tools for file operations, shell commands, and code search.Last updated41MIT
- Alicense-qualityDmaintenanceMCP server that provides file operations and Moonshot API-powered tools (reasoning, code review, testing, research, web search, agent) for Kimi K2.5, requiring only a Moonshot API key.Last updated411MIT
- AlicenseCqualityCmaintenanceMCP server to connect Claude Code, Codex, or Cursor to the Lightbulb Partners Agents platform, enabling domain agents, code workspaces, connectors, and more.Last updated100Apache 2.0
Related MCP Connectors
Official MCP server for Lovable, the AI-powered full-stack app builder.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
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/eyal81/kimss-python-sdk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server