kimcp
kimcp is a small MCP gateway for registering MCP servers, listing tools, running tools, and disconnecting servers through a CLI backed by a local FastAPI gateway.
It is built on the MCP Python SDK 2.x and talks to servers over stdio, SSE and streamable HTTP. It negotiates the newest protocol a server supports, so servers built on MCP SDK 1.x keep working.
Installation
pip install kimcp
Usage
Start the gateway:
kimcp serve
Connect a stdio MCP server:
kimcp connect stdio --server-name math --command python --arg ./server.py
Connect an SSE or streamable HTTP MCP server:
kimcp connect sse --server-name docs --url http://localhost:8001/sse
kimcp connect streamable-http --server-name search --url http://localhost:8002/mcp --header "Authorization=Bearer $TOKEN"
List registered MCP servers:
kimcp list-mcp-servers
List tools for a server:
kimcp list-tools --server-name math
Each tool is listed with its MCP definition (name, description, inputSchema, and outputSchema or annotations when the server provides them), plus the server_name it came from.
Run a tool:
kimcp run-tool --server-name math --tool-name add --tool-args '{"a": 1, "b": 2}'
result is the MCP CallToolResult as the server returned it:
{
"agent_id": "default",
"server_name": "math",
"tool_name": "add",
"result": {
"content": [{"type": "text", "text": "3"}],
"structuredContent": {"result": 3},
"isError": false
}
}
A tool that fails still returns successfully, with "isError": true and the server's message in content.
Disconnect a server:
kimcp disconnect --server-name math
Disconnecting a stdio server stops its process. Stopping the gateway disconnects every server.
Stop the gateway:
kimcp shutdown
Development
mise run setup
mise run ci
Open work lives in tasks/, one file per task with its background, steps and
completion condition. Delete the file when the task is done.
Metadata
Release files for kimcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kimcp-0.2.0.tar.gz | 21.5 kB | With provenance | Details for kimcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kimcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kimcp-0.2.0-py3-none-any.whl |
Total release size: 54.3 kB
Release files / kimcp-0.2.0.tar.gz
| Download URL | kimcp-0.2.0.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70b95c3bd710744396731fd7929d3f3590f25b89e2f7759dc6c18a1407a8f648
|
|
BLAKE2b-256 checksum How to use checksums |
11ee1f09b7decceb696424fb7ca0c6e64686493b37d17c77e1a19cb0f0e07b76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / kimcp-0.2.0-py3-none-any.whl
| Download URL | kimcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b8bc858d21938d1bc3a93b309bc459a67b810b5a718f257763411260587016c
|
|
BLAKE2b-256 checksum How to use checksums |
58631c996866684c2bf8662e20de0ef2de0ee251b3b8ae6714ea586d12cfe33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logSecurity for kimcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kimcp-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.