Skip to main content
This guide walks you through connecting to the emma MCP Server, a remote server hosted by emma — there’s no local package to install.

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

  1. Log in to emma
  2. Go to API Keys
  3. Click Create API Key and copy the generated key (it starts with emma_sk_)
Treat your API key like a password. Never commit it to version control or share it publicly.

Step 2: Configure Your Client

emma exposes its MCP server over Streamable HTTP at:
Authenticate by sending your API key as a bearer token: Authorization: Bearer YOUR_API_KEY.
Edit ~/.cursor/mcp.json (or use Cursor Settings → MCP to add a server):
Then restart Cursor to load the MCP server.
Replace YOUR_API_KEY with your actual emma API Key in every example above.

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:
  1. Open your client’s AI chat
  2. Ask: “Check emma connection status”
  3. The emma_health_check tool should report that the connection is healthy and your API key is valid

Configuration Reference

Troubleshooting

Connection Issues

No API key was sent with the request. Double-check that your client config includes the Authorization: Bearer YOUR_API_KEY header (or X-API-Key) exactly as shown above.
The API key is missing, malformed, or has been revoked. Generate a new key from API Keys in the emma dashboard and update your config.
You’ve exceeded the request rate limit for your API key. Wait and retry — the response includes a Retry-After header.
  1. Restart your client completely after editing the MCP config
  2. Check the config file for JSON/TOML syntax errors
  3. Verify the server name matches what your client expects (usually emma)
  4. Confirm the URL has no trailing typos: https://app.emma.ai/api/v1/mcp
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