kitsune-mcp
Kitsune MCP is a meta-MCP server that lets an agent discover, mount, call, test and hot-reload any other MCP server mid-session — no client restart, no config edits.
search(query, registry?, compare?)— find servers across six registries (official, MCP Registry, Glama, npm, PyPI, GitHub) with credential-readiness and optional token-cost comparison.shapeshift(server_id?, tools?, sandbox?, confirm?)— mount a server's tools at runtime as native client tools (all or a subset); no argument unmounts and kills the process; low-trust sources caged in Docker by default.call(tool_name, arguments, server_id?)— invoke a tool through the warm pooled connection, or spin up a transient server for a one-shot call.connect(command, name)— start a persistent local server (your own code, no consent gate or cage) to develop against.reload(name)— release, restart on fresh code and remount in one call: the edit/test loop.release(name)— stop a persistent connection by alias.test(server_id, level?)— quality-score a server 0–100 with a fix list for weak tool definitions.auto(task, server_hint?)— search, pick a server, infer arguments and call it in one step when you don't know the server.auth(var_or_server, value?)— set/check env credentials, run an OAuth 2.1 browser flow, or revoke tokens.status()— current form, connection pool and session/token stats.Extra dev tools with
KITSUNE_TOOLS=all—inspect,bench,compare,prewarm,craft(turn any HTTP endpoint into a tool),setup.
Provides web search capabilities through the Brave Search API, allowing AI agents to perform internet searches and retrieve information from the web.
Enables interaction with GitHub repositories and platform features through the GitHub MCP server, allowing AI agents to manage code, repositories, and development workflows.
Provides database and backend service integration through Supabase, allowing AI agents to interact with PostgreSQL databases, authentication, and other Supabase features.
Powers
Power | Ask your agent | What happens |
Heal its own tool | "Call get_weather. If it's wrong, fix it, reload and check again." | Edit → |
Shapeshift on demand | "What time is it in Tokyo?" |
|
Test any server in seconds | "Find a PDF server and try it on report.pdf." | Search 6 registries → mount it caged → call → drop. |
Sniff before it bites | "Score mcp-server-time and benchmark it." |
|
Turn any API into a power | "Make a tool for POST https://api.example.com/summarize." |
|
Cast off the form | "Drop it." |
|
bench() and craft() come with KITSUNE_TOOLS=all. The cage needs Docker; without it, community code runs uncaged, with a warning.
Related MCP server: mcphub
Try it in a minute
The demo server has one planted bug and fixed readings, so it needs no API key. With uv and Claude Code installed:
git clone https://github.com/kaiser-data/kitsune-mcp && cd kitsune-mcp
claude mcp add -s user kitsune -- uvx kitsune-mcp
claudeThen paste:
Use kitsune: connect("uv run examples/demo-hot-reload/weather_server.py", name="dev"),
call get_weather for Berlin. If it looks wrong, fix the code, reload("dev") and check again.Berlin comes back at 59°C (Fahrenheit labelled as Celsius). The agent fixes the conversion, reloads and gets 15°C, with no restart. Other clients: see Install.
AI agents installing this server (Cline, Claude Code, Cursor, …): follow llms-install.md. No clone or build needed.
The problem
An MCP client starts each server once and keeps that process. When your agent edits a tool, the client still runs the old code, and the agent can't test its fix until a human restarts or reconnects the client. Trying someone else's server has the opposite problem: it goes into your config and starts as your user, with your files and your API keys.
Without Kitsune | With Kitsune |
The agent edits a tool. You restart the client and explain the context again. |
|
A throwaway JSON-RPC script checks the wire, not what the client shows. | Tools mount as native client tools with their real schemas. Structured output, images and |
A server you want to try starts as your user: every env var, API keys included, and your home directory. |
|
A server you need once stays in your config, and its tools in every session. | Mount one tool, use it, |
The loop
connect, call and reload are tools, so the agent runs the whole cycle itself:
connect("uv run my-mcp-server", name="dev") # start your server
shapeshift("dev") # its tools appear in the client
call("summarize", arguments={"url": "https://example.com"})
# … the agent (or you) edits the tool …
reload("dev") # restart on fresh code, remount
call("summarize", arguments={"url": "https://example.com"}) # new code, same sessionNo Docker needed: connect() runs your own server as a plain local process, so the loop stays fast.
Why not just a script?
In Claude Code an agent can start a server from Bash and speak JSON-RPC to it. That works for a quick check, and Kitsune doesn't replace it. It adds what a script doesn't have:
It tests what your users get. After
reload, the tools are real client tools again, with the same schema, structured output and errors a user sees. A script only tests the raw exchange.No harness to write.
connect,reloadandcallreplace the script, and the server stays up across many edits.Other people's code stays contained. A script runs the server as you. Kitsune asks for consent, cages community packages in Docker, pins the version you approved, and
inspectprobes a server with a stripped environment: only credentials that belong to that server, none of your other keys.Not every client has a shell. Claude Desktop gives the agent no Bash; there, Kitsune's tools are the only way to run the loop.
Install
One click:
Both need uv installed (uvx runs Kitsune).
Claude Code
claude mcp add -s user kitsune -- uvx kitsune-mcpAny other client (Claude Desktop, Cursor, Windsurf, Cline, Zed, …):
{
"mcpServers": {
"kitsune": { "command": "uvx", "args": ["kitsune-mcp"] }
}
}Also on PyPI (pip install kitsune-mcp, then "command": "kitsune-mcp") and npm (npx kitsune-mcp, delegates to uvx).
Requirements: Python 3.12+ · uv · node/npx for npm-based servers · Docker optional: not used for hot-reload, only to cage community servers when installed.
Examples
Borrow a server you never configured
search("web scraping")
shapeshift("firecrawl", tools=["scrape_url"]) # mount one tool, not the whole server
call("scrape_url", arguments={"url": "https://example.com"})
shapeshift() # drop it, session stays upTry a community package, caged
search("pdf", registry="glama")
shapeshift("mcp-pdf-tools", confirm=True) # npm/PyPI run in hardened Docker when available
call("extract_text", arguments={"path": "report.pdf"})
shapeshift()Add credentials mid-session
auth("BRAVE_API_KEY", "sk-...") # saved to ~/.kitsune/.env, no restart
shapeshift("brave", tools=["brave_web_search"])A hosted server that uses OAuth logs in with auth("server-id"): a browser flow with PKCE, tokens stored per server URL.
Full live walkthrough: docs/demo-realtime.md.
When to use it, when not to
Use Kitsune when… | Skip it when… |
You're building an MCP server and want an edit/reload loop | You only use 1–3 trusted servers (configure them natively) |
You want to evaluate community MCP code without installing it for good | Every turn hits the same server (keep it always-on) |
A task needs a server that isn't in your config | You want lower token use: modern clients already defer tool schemas, so most configured servers cost little up front |
Your MCP config is crowded (GATEWAY) | You need a sub-second first call (cold mount takes ~1–15 s) |
How it works
shapeshift(server_id) picks a transport (stdio, Streamable HTTP, legacy SSE, WebSocket, Docker), connects, reads tools/list, and registers each tool as a native tool with the server's real schema. The client receives notifications/tools/list_changed and sees first-class tools, with no wrapper in between. shapeshift() with no argument removes them and closes the connection.
Mounted tools appear natively in clients that refresh on tools/list_changed (tested: Claude Code and Claude Desktop; see compatibility). In any client, call() reaches a mounted tool anyway.
search() covers the official servers repo, the MCP Registry, Glama, npm, PyPI, GitHub (github:owner/repo). Hosted servers are reached at their own https:// URL.
Tools
Default profile: 10 tools. Standing cost: ~1,900 tokens/turn on clients that load every tool schema up front (measured with python examples/benchmark.py, 2026-11-27); ~70 tokens/turn on Claude Code with Tool Search, where schemas load only on first use (measured on Claude Code 2.1.319, 2026-11-06).
Tool | Role |
| Start a persistent local server, e.g. the one you're developing |
| Release, restart on fresh code, remount, in one call |
| Stop a persistent server |
| Search 6 registries |
| Mount a server's tools (all or a subset); no argument drops them |
| Call a tool; the server is inferred when mounted |
| Set an env key or run an OAuth 2.1 browser flow |
| Search, mount and call in one step |
| Current form, connection pool, session stats |
| Score a server 0–100 with a fix list: your |
KITSUNE_TOOLS=all (or the kitsune-forge command) adds developer tools: inspect (schemas, credential check, token cost), bench (p50/p95 latency), compare, prewarm, craft (turn any HTTP endpoint into a tool), setup, and more. See docs/tools.md. Companion skills for Claude Code: kitsune-dev, kitsune-improve.
Safety
Reaching thousands of community servers only works if unknown code can be contained.
Community code
Consent first. npm, PyPI and GitHub sources need
confirm=True, including GitHub installs found through other registries. The model can set that flag itself, so real approval belongs in your client's tool-approval UI.Docker cage by default when Docker is installed: no host filesystem, read-only root,
--cap-drop ALL,no-new-privileges, memory and PID limits. Credentials are passed by name, never in argv. Network stays on, so packages can install.Version pins (TOFU). A later malicious publish doesn't silently replace a version you already ran.
connect()is for your own code. It runs the command it is given, as your user, with no consent gate and no cage. Approveconnectcalls in your client.
Every call
Opt-in action guard. A
~/.kitsune/policy.jsonchecks each downstream call against allow/ask/deny rules, path roots and a host allowlist. It reads the arguments (paths in commands,uri, hosts), not just tool names.askgoes to you through MCP elicitation.No double runs. A call that may have run (a timeout after sending, a broken pipe) is never sent again: Kitsune reports "outcome unknown" instead of retrying a payment or a delete.
Network
SSRF blocked.
fetch()and crafted tools refuse private, loopback and cloud-metadata addresses. The address that passed the check is the one connected to, so DNS rebinding can't swap one in. Every redirect is re-checked, and credentials or request bodies never follow a redirect to another origin.OAuth 2.1 done by the book. PKCE, issuer checks (RFC 8414, RFC 9207), HTTPS on every endpoint that sees a secret, no redirects on token requests.
Releases you can verify
Every GitHub release carries Sigstore signatures, and builds are reproducible: the signed files are byte-identical to PyPI's. Check one with
sigstore verify github --repository kaiser-data/kitsune-mcp <file>.Two rounds of external code review (Codex, Grok) in November 2026; every confirmed finding is fixed in 0.25.2–0.25.5. See the CHANGELOG.
Don't run it unattended with production admin, billing or security credentials. The full model, including what it does not protect against: docs/safety.md.
More
Configuration: env and
.envlookup, tool profiles, sandbox and trust settings, GATEWAY, mount patternsPerformance: cold/warm latency and token cost compared with always-on servers
Transports · Compatibility · Agent patterns · Worked scenarios
Listed in: MCP Registry · Glama · MCP Market · Awesome MCP Servers
⭐ Saved you a restart? Star it on GitHub so other MCP developers find it.
Why "Kitsune"?
In Japanese folklore the kitsune (狐) is known for what it can become: it borrows a form, uses that power, casts it off and returns to itself. That is the product loop.
I am not Japanese, and I use this name with the highest respect for the mythology and culture it comes from. The parallel felt too precise to ignore.
Contributing
make dev # install with dev dependencies
make test # pytest (runs offline)
make lint # ruffIssues and PRs welcome: github.com/kaiser-data/kitsune-mcp · CHANGELOG.md
MIT License · Python 3.12+ · Built on MCP Python SDK
Available Tools
10 toolsauthA
Check or set credentials. ALL_CAPS = env var; server-id = creds check or OAuth.
auth('GITHUB_TOKEN', 'ghp_...') # save env var auth('GITHUB_TOKEN') # check if set auth('server-id') # show creds needed / run OAuth auth('server-id', 'logout') # revoke OAuth tokens
Inputs: server_id_or_var (required), value. Returns: result
autoB
search → pick server → infer args → call. Use when you don't know which server to use.
auto('what time in Tokyo') auto('list issues on acme/api', server_hint='github')
Inputs: task (required), keys, arguments, tool_name, +1 more. Returns: result
callA
Invoke a tool on an MCP server. Returns the tool's response as text.
Routes through the warm pooled transport when a server is shapeshifted; otherwise spins up a transient transport for the given server_id. Records the call in session stats. Long responses (HTML, large outputs) are truncated with a continuation note.
Use when: the tool name and target server are known. Avoid when: discovery is needed — auto() does search → pick → call in one step.
call('get_current_time', arguments={'timezone': 'UTC'}) # after shapeshift call('list_directory', '@mcp/server-fs', {'path': '/tmp'}) # ad-hoc one-shot
Inputs: tool_name (required), config, arguments, server_id. Returns: result
connectC
Start a persistent server. command: server_id or shell cmd (e.g. 'uvx voice-mode'). name: alias for release().
Inputs: command (required), name, timeout, inherit_stderr. Returns: result
releaseB
Kill a persistent connection by name.
Inputs: name (required). Returns: result
reloadA
Reload a persistent connection after editing its code — the MCP REPL in one call.
reload('dev') # release the stale process, start fresh code, remount live
Replaces the manual release() + connect() + shapeshift() cycle and removes the
"connect() handed back the old process" footgun (it always releases first).
name is the alias you gave connect().
Inputs: name (required). Returns: result
searchA
Discover MCP servers across registries — the entry point to mounting.
Returns a ranked list of server_ids with name, description, source, and credential-readiness status. Records discovered servers in session so status() can summarize them. Reports per-registry failures inline rather than failing the whole call.
Use when: you need to find a server matching a capability before mounting. Avoid when: the server_id is already known — go straight to shapeshift() or inspect().
search('web search') # find candidates search('postgres', compare=True) # side-by-side token-cost table search('vector db', registry='official')
registry: all|official|mcpregistry|glama|npm|pypi
Inputs: query (required), limit, compare, registry. Returns: result
shapeshiftA
Mount an MCP server's tools at runtime. Empty server_id unmounts.
shapeshift('mcp-server-time') # mount (community sources cage by default) shapeshift('id', tools=['only_this']) # lean — mount only listed tools shapeshift('id', sandbox=False) # opt out of the default Docker cage shapeshift('id', sandbox=True) # force the cage (hard-fail if no Docker) shapeshift() # unmount + kill process
sandbox: None (default) cages low-trust npm/PyPI/github sources in Docker when it's available (best-effort — runs uncaged with a nudge if not); True forces the cage; False opts out. source: auto|local|official. confirm=True for community sources.
Inputs: keep, tools, source, confirm, +3 more. Returns: result
statusA
Show Kitsune runtime state: providers, current form, connections, token stats.
Inputs: no named parameters. Returns: result
testA
Quality-score a server 0–100, registry id or a connect()'d alias (your own server).
level: 'basic' (schema checks) or 'full' (also live calls). For a local server the result includes a fix list of weak tool definitions.
Inputs: server_id (required), level. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct roles, and descriptions explicitly guide selection (e.g. auto vs call, search vs shapeshift). There is genuine overlap between connect (start persistent server) and shapeshift (mount tools), plus reload vs release+connect, but the docs disambiguate these well enough.
All tools are single lowercase tokens (test, auth, auto, status, call, search, connect, release, reload, shapeshift), a coherent and predictable style. It mixes verb and noun forms rather than a strict verb_noun pattern, but the convention is consistent throughout.
Ten tools is well within the ideal range for an orchestrator/registry server. Each tool maps to a distinct lifecycle step (discover, mount, invoke, manage, auth, test, status), earning its place.
The surface covers discovery, mounting, invocation, connection management, auth, and testing — a solid lifecycle. Minor gaps: descriptions reference an inspect() operation and shapeshift-based unmount that is not exposed as its own tool, and there's no explicit list-mounts tool beyond status().
Maintenance
Related MCP Connectors
MCP registry: 138k servers crawled, handshake-validated, reliability-scored. 744 production-safe.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
28 MCP servers behind one endpoint: earth, sky, policy, records and research
Related MCP Servers
- AlicenseAqualityDmaintenanceA server that implements the Model Context Protocol for managing dynamic forms, allowing users to create, retrieve, and handle responses for web forms via the @dynamicfrm/js library.4ISC
- AlicenseNot gradedqualityAmaintenanceA unified hub for centrally managing and dynamically orchestrating multiple MCP servers/APIs into separate endpoints with flexible routing strategies.2,775Apache 2.0
- -
- AlicenseCqualityDmaintenanceEnables academic research through paper search across multiple databases (IACR, CryptoBib, Crossref, Google Scholar), PDF processing, and GitHub repository browsing. Features modular architecture with FastMCP-based proxy server routing to specialized academic tools.743 PyPI2MIT