
Imperal MCP
io.github.imperalcloudPublished by GitHub account imperalcloudv0.9.11Updated Nov 7, 2026
Build, validate, smoke-test & deploy Imperal declarative IR apps from any LLM or agent.
Overview
Wraps a coding agent with a code map, checkpoints, cross-session memory and a fact check on its answers, plus Imperal app deploy tools.
- What you can do
- Map and read code: orient, repo profile, symbol and text search, file outlines, single-symbol reads, graph and contract slices
- Assess and verify edits: blast-radius analysis before a change, syntax checks after one, project tree and git status
- Snapshot and restore the workspace: checkpoints, checkpoint diffs and rollback
- Track tasks and memory: step frames, task plans closed only by measured proof, recall, history search, saved facts and repo notes, messaging other live sessions
- Build and ship Imperal apps: validate and smoke-test declarative app files, deploy them, list apps, run read and write tools, upload files
- When to use it
- Use it when you want an existing agent such as Claude Code, Cursor or Codex to read less of a large repository, know what a change will break, undo risky edits, and keep context across sessions. Also relevant if you build and deploy Imperal declarative apps.
- Requirements
- Local Python package installed with pipx or uv (Python 3.7-3.14); the code tools work offline. Memory, step frames, the answer check and app deployment need a free Imperal Cloud account via browser login, or the IMPERAL_TOKEN service token for headless use. IMPERAL_WORKSPACE should point at the repository root; IMPERAL_API_URL can override the API base URL.
Installation
In SourceWeft
- Open Imperal MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
imperal-mcp - The Exoskeleton for Your AI Coding Agent 🐝
[Imperal MCP on mcprush] [PyPI] [Python] [License: GPL v3] [Protocol: ICNLI] [Protocol: MCP]
Stop babysitting your AI. Put it in an exoskeleton: it remembers everything, sees your whole codebase, can undo any change and can't fake a result - or hallucinate one past you. Fewer wasted tokens, fewer broken builds. Works with Claude Code, Cursor, OpenAI Codex, Gemini CLI, Windsurf, Claude Desktop, Cline and Goose.
Keep the quotes: zsh (the macOS default) reads [code] as a file pattern without them. No pipx yet? uv tool install "imperal-mcp[code]" does the same, or see Quick start.
The code tools work offline, no account needed. Memory across sessions, the kernel's frame and the hallucination
check run on an Imperal Cloud account (imperal-mcp login) - sign-up is free, plans
and credits: imperal.io/pricing.
The problem
AI coding agents are brilliant - and work blind:
- They forget. Every new session, every switch from Cursor to Claude Code, starts from zero. You explain your architecture again. And again.
- They burn tokens. To look at one function they read the whole 2,000-line file, then
grepthe repo and read three more files. - They hallucinate. A function that doesn't exist. A file it never opened. "I updated the caller" - which one? "All tests pass" - nobody ran them. Said with total confidence, and you only find out in production.
- They break things. They edit a shared helper without knowing who calls it, and a failed experiment leaves your working tree dirty.
The fix: put your agent in an exoskeleton
imperal-mcp wraps the agent you already use. Same model, new abilities:
An illustration of one task - your own numbers: token_savings() measures them in every session.
Hallucinations: caught before they reach you
You can't trust a sentence just because it sounds sure. So the exoskeleton doesn't trust the model's words - it checks them against the record of what actually happened in this task.
On every step, the names the agent's thinking leans on - functions, files, sizes - are matched against what the task really read, what its commands really returned and what your code map really holds. A name found nowhere comes back in the next frame as NAMED BUT NOT FOUND, before the agent builds on it.
On the final answer, the same check runs once more. Name a symbol nobody read, a file nobody opened, a size nobody measured - and the answer doesn't reach you. It goes back to the agent:
The agent then reads the code it skipped, or corrects the claim. Either way, what you get is backed by something real.
On "done", words count for nothing: a plan item closes only on a proof the kernel measured - a diff, a check that exited 0, a finding with its sources. "Tests pass" without a test run is not a pass.
What it can't do - and we'd rather tell you: it doesn't make the model smarter. An agent can still draw a wrong conclusion from true facts. What it can no longer do is pass off what it never saw.
Powered by ICNLI - the new HTTP for AI
HTTP gave every computer one way to talk to every other. ICNLI gives people and AI agents - and agents among themselves - one way to work together that can be proven: whatever the model, whatever the tool.
ICNLI (Infrastructure Contextual Natural Language Interface) is the open protocol at the heart of the exoskeleton - and the reason it can promise honesty, not just speed.
Under ICNLI, an agent's work is a state the kernel can prove, not a story the model tells:
- Every step is measured. What a call read, changed or returned is recorded by the kernel - never taken from the model's words.
- Proven vs. claimed. The step frame shows what is proven and what is only claimed; a plan item is done only when its proof (a diff, a check that exited 0, a finding with sources) was seen.
- Decisions from facts. Progress, loops and stalls are computed from what the steps returned, and stated to the agent in plain words.
- One state, every surface. The same session state serves the terminal, the IDE, the web panel and Telegram.
MCP is how your agent talks to the exoskeleton. ICNLI is how the exoskeleton thinks. The specification is open (CC BY-SA 4.0) at icnli.org.
Quick start
That's it. From the next prompt on, your agent starts each step from the kernel's frame, remembers across sessions and gets its final answer checked.
Other ways to connect
Claude Code only, in this project:
Adds the imperal server to .mcp.json (keeps your entries, refuses to overwrite malformed JSON), appends the
exoskeleton protocol to CLAUDE.md, and installs a PostToolUse hook that syntax-checks every Edit/Write.
Claude Code CLI:
Cursor / Claude Desktop / Windsurf / Cline (.mcp.json or claude_desktop_config.json):
Any other MCP stdio client: run imperal-mcp with IMPERAL_WORKSPACE set to your repository root.
Pricing: sign-up is free; plans and credits are on imperal.io/pricing. In imperal-mcp only
framespends credits; every other tool is free, and the local code tools work offline.
For the geeks: how it works
The loop
frame- at the start and after each change. The kernel's step frame: the task and plan with what is proven, the code around the focus from the exact graph, what the change reaches, the machines and repos, the path so far, and a DECISION section to act on first. Withimperal-mcp setup, the shell's prompt hook puts it in context automatically.task(goal, items)- declare the request and the plan; an item closes only by a proof the kernel saw. An item that cannot be finished is marked blocked with the reason.- Code -
orient->outline->read_symbol;search_code/grep_codefor exact text;impact_of_changebefore editing a shared symbol. The same tools reach a server's repo withtarget="host:<alias>"ortarget="ssh:<connection_id>". - Safety -
checkpointbefore risky edits,checkpoint_diff,checkpoint_rollback;check_syntaxafter. - Memory - every call, thought and answer is written to the vault by the shell's hooks; look back with
recall,search_history,state_lens,vault_log_read. - The final check - the stop hook sends the final answer to the kernel: an answer that names a file, symbol or size the task never read is handed back to the agent, and open plan items are listed to you.
Hooks (installed by imperal-mcp setup)
Tool catalog (34 tools, 4 resources, 1 prompt)
Kernel & task (Imperal Cloud)
Memory & other sessions (Imperal Cloud)
Code map (imperal-mcp[code], local or on a server via target)
Safety net (local)
Apps on Imperal Cloud (ICNLI)
Resources & prompt: imperal://exoskeleton-protocol (the operating discipline), imperal://ir-spec,
imperal://ui-catalog, imperal://examples, and the build_imperal_app prompt for designing, validating,
smoke-testing and deploying an app.
CLI
Privacy
See PRIVACY.md for every data flow in detail.
Python 3.7 - 3.14
On Python 3.10+ imperal-mcp runs natively. On older system Pythons (3.7 - 3.9) a zero-dependency launcher provisions
an isolated Python 3.12 runtime via uv on first launch - the full code map works even on legacy systems.
Built like a vault
Your agent's memory is your work - your code, your decisions, your mistakes. So it's guarded like one.
What leaves your machine
Scrubbed on your machine, before sending. Private keys, passwords, tokens, JWTs, API keys, authorization headers,
credentials in URLs, emails, phone numbers, payment cards and SSNs are masked locally by imperal-mcp itself - before
a single byte leaves your machine.
How it's locked down
- Your own sealed space. Every user's memory lives in its own isolated space, in a private storage network that is never exposed to the internet. Each internal service holds its own narrow key and reaches only what it needs.
- Secrets sealed with keys that can't be taken out. Your connected accounts' tokens and credentials are encrypted in Vault with non-exportable keys - a full copy of the database reveals nothing.
- Zero keys on disk. No platform secret is ever written to a server's disk: every service gets its keys from Vault at start, bound to that one machine.
- Distributed infrastructure. Isolated environments across independent data centers and providers - no single provider holds the whole platform.
- Durable by design. Every agent turn runs as a durable workflow: a restart or an outage costs time, never your work.
- Encrypted in transit. Everything between your machine and the platform goes over HTTPS; you sign in with OAuth
2.0 device code + PKCE, and no password ever passes through
imperal-mcp.
And on your machine
- Workspace confinement. Local tools resolve every path and refuse anything outside your workspace root.
- Your config files are safe.
setup,claude-setupandinstall-hooksrefuse to overwrite a JSON file they cannot parse;setup --removetakes away exactly what it added. - You stay in charge. Destructive actions ask you first; money moves only with your approval in the panel. A message from another agent informs - it approves nothing.
- Your memory, your call. See everything your agents remember and delete any of it - or all of it - from the Imperal panel. Delete your account and your space goes with it.
FAQ
Does it replace Claude Code / Cursor / Codex? No. It's an exoskeleton, not a new agent: you keep your tool and your model - the exoskeleton makes them remember, see, check and prove.
Which model does it use? Yours. The kernel does the bookkeeping - measuring, remembering, checking - and your agent's model does the thinking.
What does it cost?
Sign-up is free. Plans, included credits and top-ups are on imperal.io/pricing. In
imperal-mcp only frame (the kernel's step frame) spends credits; every other tool - the code map, checkpoints,
memory, history, messaging - is free.
Does it work without the cloud? The code map, symbol reads, blast radius, syntax checks and checkpoints run fully offline. Memory across sessions, the kernel's frame and the hallucination check need your Imperal Cloud account.
How is this different from an MCP server that searches code? Search tells your agent where things are. The exoskeleton also remembers what it did, knows what a change will break, holds it to its plan and checks every claim against what really happened - under one protocol, ICNLI.
Can I remove it?
imperal-mcp setup --remove takes away exactly what setup added. imperal-mcp logout revokes the sign-in and deletes
the local credentials.
Author
Created by Valentin Scerbacov ([email protected]) and built at Imperal.
License, protocol & trademarks
- Code: GNU General Public License v3.0 (GPL-3.0-only).
- Protocol: ICNLI, an open specification under CC BY-SA 4.0.
- Privacy: see PRIVACY.md - local execution, credential storage and PII redaction.
- Trademarks:
Imperal,Imperal Cloud,WebbeeandICNLIare trademarks of Imperal, Inc.Claude,Claude Code,Claude DesktopandAnthropicare trademarks of Anthropic, PBC.Cursoris a trademark of Anysphere, Inc.OpenAIandCodexare trademarks of OpenAI, Inc.Windsurfis a trademark of Exafunction, Inc. (Codeium).Geminiis a trademark of Google LLC. All third-party names indicate MCP interoperability only; no endorsement or affiliation is implied.
Source: README.md at commit 8a0ced5
Tools
0Version history
13- v0.9.11LatestNov 7, 2026
- v0.9.1Nov 5, 2026
- v0.9.0Nov 4, 2026
- v0.8.15Nov 4, 2026
- v0.8.14Oct 30, 2026
- v0.8.12Oct 29, 2026
- v0.8.10Oct 26, 2026
- v0.8.1Oct 25, 2026
- v0.7.4Oct 25, 2026
- v0.6.0Oct 23, 2026
- v0.5.10Oct 23, 2026
- v0.5.6Oct 22, 2026
- v0.2.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts