Connect the MCP server
Run the emma MCP server so Claude Desktop, Cursor, or your own agent can read your infrastructure, resources, cost, and security findings.
Preview — not yet published. The @emma/mcp-server package is not on npm yet, so
npx @emma/mcp-server does not work today. Until it is published, run the server from source as
described below. Once it is published, npx @emma/mcp-server replaces the build-from-source steps and the
rest of this page stays the same.
The emma MCP server exposes your infrastructure to any Model Context Protocol client — Claude Desktop, Cursor, or an agent you build. It runs locally as a subprocess and calls emma AI Console on your behalf, so your AI tools can list your resources, read cost trends, and read security findings. It is read-only: it has no tools that change infrastructure.
Before you start you need an emma MCP key, Node.js 20.19 or newer, and pnpm 9 (for running from source).
1. Create an MCP key
The server authenticates with an emma MCP key of the form emma_ak_<keyId>.<secret>.
Page navigation — click Settings → RBAC Keys → Create key
Give the key a name and a role — Viewer is enough, since every MCP tool is read-only. Copy the key when it is shown; it is not displayed again. Creating keys requires the admin role. (The tab is labelled RBAC Keys; the page it opens is titled API Keys. The separate Settings → API Keys tab holds per-project emma credentials and is not what the MCP server uses.)
2. Get the server
Running from source needs access to emma's AI Console source repository — ask emma if you don't have it.
git clone https://github.com/emma-platform/iap.git
cd iap
pnpm install --filter @emma/mcp-server...Check that the server starts:
node_modules/.bin/tsx packages/mcp-server/src/cli.ts --helpThe server takes your key with the --token flag. It does not read the key from an environment variable.
3. Add it to your client
Register the server with your MCP client: the command is the repository's tsx, and the arguments are the
server's entry file plus --token. Use absolute paths.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"emma": {
"command": "/path/to/iap/node_modules/.bin/tsx",
"args": [
"/path/to/iap/packages/mcp-server/src/cli.ts",
"--token",
"emma_ak_xxxxxxxx.yyyyyyyy"
]
}
}
}Restart Claude Desktop, and the emma tools appear.
Add an MCP server in Cursor's settings with the same command and arguments as the Claude Desktop example.
Any MCP-compatible client works: point it at the same command and arguments. Consult your client's docs for where MCP servers are configured.
tsx needs node on the PATH your client starts it with. If the client can't find it, start the client
from a shell where node works, or check the client's MCP logs.
To point the server at an emma AI Console other than https://iap.emma.ms, add --base-url <url> to the
arguments.
4. Verify the tools
Once the client reloads, four emma tools become available. Ask your client something that uses them.
Try this in your MCP client
List my emma resources in eu-central
The full set of tools, their parameters, and the server's flags are in the MCP tools reference.
The key scopes everything the server can see — treat it like a password. It sits in plain text in your client's config file. If it is ever exposed, delete it under Settings → RBAC Keys and create a new one.
What's next
- MCP tools reference — every tool the server exposes
- The copilot — the same data, plus changes, inside the console
- Safety & confirmations — how changes stay gated in the console
Last updated on 24 Sept 2026