Skip to main content Switch to mobile version imperal-mcp 0.9.28 The exoskeleton for your AI coding agent: memory across sessions, a live code map, undo for every change and a fact check of every name, file and number it states. MCP server for Claude Code, Cursor, Codex, Gemini CLI.
pip install imperal-mcp==0.9.28 Copy PIP instructions
Part of Imperal - The Ecosystem for AI, Agents, and People
Memory across sessions, a live code map, undo for every change and a fact check, for the coding agent you already use.
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 invent one past you. Fewer wasted tokens, fewer broken builds. Works with Claude Code, Cursor, OpenAI Codex, Gemini CLI, Windsurf, Claude Desktop, Cline and Goose.
pipx install "imperal-mcp[code]" && imperal-mcp login && imperal-mcp setup 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 fact check run on an Imperal Cloud account (imperal-mcp login, or let your agent call the login tool: it shows you a link and a code) - sign-up is free, plans and credits: imperal.io/pricing.
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 grep the 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.
WITHOUT the exoskeleton 1. cat service.py (1,800 lines) -> 72,000 chars dumped into context 2. grep -rn "process_order" . -> 140 noisy matches 3. read 3 more files to trace callers -> +95,000 chars burned 4. edit a shared function blind -> 2 callers broken, a syntax error left behind 5. "I also updated retry_backoff()" -> that function doesn't exist 6. "Done, tests pass!" -> it never ran them 7. open Cursor tomorrow -> total amnesia WITH the exoskeleton 1. frame -> the task, what is proven, the code around your focus, the world 2. read_symbol("service.py", "Order.run") -> only the 28 lines that matter 3. impact_of_change(["Order.run"]) -> every caller, before you touch a line 4. checkpoint("before-refactor") -> undo in one call if it goes wrong 5. task(goal, items) -> an item closes only when the kernel saw the proof 6. "I also updated retry_backoff()" -> held back: no file it read holds that name 7. tomorrow, any tool -> recall: the whole history is there Made-up names, files and numbers: 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:
KERNEL FACTS: your answer states what the kernel did not see happen: - `retry_backoff` -- no file this task read and no output it got contains this name Correct the answer to the facts, or do the missing work first. 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 of the Imperal ecosystem and 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.
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.
# 1. Install (Python 3.7 - 3.14; the code map included) -- quotes required in zsh pipx install "imperal-mcp[code]" # or: uv tool install "imperal-mcp[code]" # or: pip install "imperal-mcp[code]" only INSIDE a virtual environment: a bare `pip install` into the system # Python is refused on Debian 12+/Ubuntu 23.04+/Homebrew (error: externally-managed-environment) # no pipx? macOS: brew install pipx · Debian/Ubuntu: sudo apt install pipx · then: pipx ensurepath # 2. Sign in to Imperal Cloud (memory, the kernel's frame, apps) imperal-mcp login # 3. Wire every shell found on this machine: server + hooks + protocol imperal-mcp setup # Claude Code, Codex, Antigravity CLI, Gemini CLI 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.
Claude Code only, in this project:
imperal-mcp claude-setup --with-hooks 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 mcp add imperal -- imperal-mcp Cursor / Claude Desktop / Windsurf / Cline (.mcp.json or claude_desktop_config.json):
{ "mcpServers": { "imperal": { "command": "imperal-mcp", "args": [], "env": { "IMPERAL_WORKSPACE": "/absolute/path/to/your/repo" } } } } Nothing installed, through uv (what the MCP Registry entry runs):
{ "mcpServers": { "imperal": { "command": "uvx", "args": ["--with", "imperal-mcp[code]", "imperal-mcp"], "env": { "IMPERAL_WORKSPACE": "/absolute/path/to/your/repo" } } } } Keep --with imperal-mcp[code]: without it the code tools answer with what to install.
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 frame spends credits; every other tool is free, and the local code tools work offline.
For the geeks: how it works
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. With imperal-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_code for exact text; impact_of_change before editing a shared symbol. The same tools reach a server's repo with target="host:
Safety - checkpoint before risky edits, checkpoint_diff, checkpoint_rollback; check_syntax after.
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 (35 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)
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.
imperal-mcp # Start the MCP server over stdio imperal-mcp login # Sign in via browser (device code + PKCE); --no-browser prints the URL imperal-mcp logout # Revoke the refresh token and delete local credentials imperal-mcp setup [shells] # Wire claude | codex | antigravity | gemini (default: the ones found); --remove undoes it imperal-mcp claude-setup # Configure .mcp.json and CLAUDE.md for one project (--workspace, --with-hooks) imperal-mcp install-hooks # Install the Claude Code PostToolUse syntax-check hook imperal-mcp hook
See PRIVACY.md for every data flow in detail.
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.
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. 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.
Workspace confinement. Local tools resolve every path and refuse anything outside your workspace root.
Your config files are safe. setup, claude-setup and install-hooks refuse to overwrite a JSON file they cannot parse; setup --remove takes 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.
Want a standalone terminal agent? Try Webbee 🐝
If you want the same code map, Shadow Git checkpoints, cross-surface memory and fact-checked execution in a standalone open-source terminal agent (no external IDE or shell required), try Webbee (PyPI):
pipx install webbee imperal-mcp and webbee share the same Imperal Cloud account, memory vault and live sessions - start a task in Claude Code or Cursor, continue it in Webbee, the web panel or Telegram without losing context.
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 fact 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.
🌐 The Imperal Ecosystem
Imperal is one ecosystem that unites AI, agents, and people. imperal-mcp brings it into the coding shell you already use.
Created by Valentin Scerbacov (valentin@imperal.io) 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, Webbee and ICNLI are trademarks of Imperal, Inc. Claude, Claude Code, Claude Desktop and Anthropic are trademarks of Anthropic, PBC. Cursor is a trademark of Anysphere, Inc. OpenAI and Codex are trademarks of OpenAI, Inc. Windsurf is a trademark of Exafunction, Inc. (Codeium). Gemini is a trademark of Google LLC. All third-party names indicate MCP interoperability only; no endorsement or affiliation is implied.
Released: Dec 5, 2026
Author: Imperal, Inc.
GNU General Public License v3 (GPLv3) (GPL-3.0-only)
agent-memory ai-agents ai-memory claude-code code-graph codex coding-agent context-engineering cursor developer-tools gemini-cli hallucination icnli llm mcp mcp-server model-context-protocol tree-sitter
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: GNU General Public License v3 (GPLv3)
Programming Language Python :: 3.7
Topic Scientific/Engineering :: Artificial Intelligence
Software Development
Software Development :: Quality Assurance
Release files for imperal-mcp 0.9.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 411.8 kB
Release files / imperal_mcp-0.9.28.tar.gz
Release files / imperal_mcp-0.9.28-py3-none-any.whl
Security for imperal-mcp 0.9.28
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.
None of the files in this release were uploaded with provenance metadata.
A 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.
Release history Release notifications | RSS feed
Dec 5, 2026 2 release files No provenance
Dec 3, 2026 2 release files No provenance
Dec 2, 2026 2 release files No provenance
Nov 30, 2026 2 release files No provenance
Nov 27, 2026 2 release files No provenance
Nov 26, 2026 2 release files No provenance
Nov 20, 2026 2 release files No provenance
Nov 15, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 8, 2026 2 release files No provenance
Nov 7, 2026 2 release files No provenance
Nov 6, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Nov 3, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 27, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 25, 2026 2 release files No provenance
Oct 24, 2026 2 release files No provenance
Oct 23, 2026 2 release files No provenance
Oct 22, 2026 2 release files No provenance
Sep 24, 2026 2 release files No provenance
Jul 20, 2026 2 release files No provenance
Jul 15, 2026 2 release files No provenance
Jul 3, 2026 2 release files No provenance
Jul 2, 2026 2 release files No provenance
Jun 23, 2026 2 release files No provenance
Jun 22, 2026 2 release files No provenance
Jun 21, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











