imperal-mcp
Enables LLMs to build, validate, smoke test, and deploy Imperal apps using a declarative IR format directly from the editor.
README
imperal-mcp
A stdio MCP server that lets any LLM (Claude Code, Codex, Cursor, etc.) build and deploy Imperal apps using the declarative IR format.
The client's own LLM authors the app; this server validates, smokes, and deploys it — no hand-written deployment scripts needed.
Install & sign in
pipx install imperal-mcp # or: pip install --user imperal-mcp
imperal-mcp login # opens your browser to sign in to Imperal
login stores credentials in ~/.imperal/credentials.json and auto-refreshes the access
token — no manual token management needed.
To sign out and remove stored credentials:
imperal-mcp logout
Configure (.mcp.json)
Add to your project's .mcp.json (or Claude Code's global MCP config):
{
"mcpServers": {
"imperal": {
"command": "imperal-mcp"
}
}
}
No token required — imperal-mcp login provides it.
Environment variables
| Variable | Default | Purpose |
|---|---|---|
IMPERAL_API_URL |
https://auth.imperal.io |
Auth / API base URL |
IMPERAL_PANEL_URL |
https://panel.imperal.io |
Panel base URL |
IMPERAL_TOKEN |
(not set) | Optional override for CI / headless environments — set this to skip browser login |
For CI or headless use, set IMPERAL_TOKEN to a service token from
panel.imperal.io → Developer → Access tokens.
Tools
| Tool | Description |
|---|---|
validate_ir(app_ir) |
Validate an app.ir.json locally — envelope structure + every declarative step. No network. Returns {valid, issues}. |
smoke_ir(app_ir, function, args?) |
Run one function in an isolated store and report {ok, result, trace}. |
deploy_ir(app_ir, app_id) |
Deploy an app.ir.json into the caller's account (creates the app record if needed). |
list_apps() |
List the caller's developer apps (PII-masked). |
get_app(app_id) |
Get one app's manifest + tools with action_type (PII-masked). |
run_read_tool(app_id, function, args?) |
Run a read-only tool of a deployed app. Refuses write/destructive tools. |
Resources
| URI | Description |
|---|---|
imperal://ir-spec |
IR envelope specification — structure, fields, action vocabulary. |
imperal://ui-catalog |
All ui.* component names usable in panels and render steps. |
imperal://examples |
Example app.ir.json (link-saver) to use as a starting point. |
Prompt
build_imperal_app — step-by-step guidance for an LLM to go from intent to a deployed app:
read the spec, author the IR, validate, smoke, deploy.
Security
run_read_tool is gate-kept: it looks up the tool's action_type from get_app and refuses
any tool that is not explicitly action_type: "read". Write and destructive tools are never
executed. All read responses pass through a client-side PII scrub (email/phone redaction) before
being returned to the LLM.
Development
git clone https://github.com/imperalcloud/imperal-mcp
cd imperal-mcp
pip install -e '.[dev]'
python -m pytest
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.