Prerequisites
Before you begin, make sure you have:- One of the supported clients: Cursor, Claude Code, or Codex
- An emma account
- An emma API Key (create one from API Keys in the emma dashboard)
Step 1: Get Your API Key
- Log in to emma
- Go to API Keys
- Click Create API Key and copy the generated key (it starts with
emma_sk_)
Step 2: Configure Your Client
emma exposes its MCP server over Streamable HTTP at:Authorization: Bearer YOUR_API_KEY.
- Cursor
- Claude Code
- Codex
Edit Then restart Cursor to load the MCP server.
~/.cursor/mcp.json (or use Cursor Settings → MCP to add a server):Alternative: Local stdio Bridge
If your MCP client only supports the stdio transport (or doesn’t support custom HTTP headers yet), use emma’s local Node.js bridge instead. It proxies the same tools to the same backend over your API key.The local bridge is published on npm as
@duzzle/emma-mcp and requires Node.js 18+. It exposes the exact same tool set described in emma MCP Server.Verify the Connection
To verify that the emma MCP Server is working correctly, use the health check tool:- Open your client’s AI chat
- Ask: “Check emma connection status”
- The
emma_health_checktool should report that the connection is healthy and your API key is valid
Configuration Reference
Troubleshooting
Connection Issues
429 Rate Limited
429 Rate Limited
You’ve exceeded the request rate limit for your API key. Wait and retry — the response includes a
Retry-After header.Tools not appearing
Tools not appearing
- Restart your client completely after editing the MCP config
- Check the config file for JSON/TOML syntax errors
- Verify the server name matches what your client expects (usually
emma) - Confirm the URL has no trailing typos:
https://app.emma.ai/api/v1/mcp
Using the local stdio bridge instead
Using the local stdio bridge instead
If
npx -y @duzzle/emma-mcp fails to start, make sure Node.js 18+ is installed and EMMA_API_KEY is set in the env block of your MCP config.Security Best Practices
1
Use Environment Variables
Where your client supports it, reference an environment variable instead of hardcoding the key in a committed config file.
2
Scope and Name Your Keys
Give each API key a descriptive name per machine/agent so you can revoke individual keys without affecting others.
3
Rotate Keys Regularly
Periodically create new API keys and revoke old ones from API Keys in the emma dashboard.
Next Steps
emma MCP Server
Learn about available tools and use cases
Tools Reference
Detailed documentation for all tools