MCP client
Connect Cursor, Claude Desktop, or other MCP clients via the published MCP npm package.
Loading article…
The MCP server exposes /api/v1 as Model Context Protocol tools. Your MCP client spawns it as a subprocess; the server speaks MCP over stdio and forwards each tool call as an authenticated HTTP request.
Authentication, scopes, and billing quota are identical to calling the REST API directly.
account:read, members:read, notifications:read, and tools:read / tools:write when your deployment exposes /api/v1/tools/*.| npm package | emailguard-mcp (version 1.0.0) |
| Transport | stdio (spawned by the MCP client) |
| API base URL | Baked into the package; override with API_BASE_URL at runtime |
Reference the package from your client config with npx:
npx -y emailguard-mcp| Variable | Required | Description |
|---|---|---|
API_KEY_APIKEYAUTH | Yes | Full Authorization header value, e.g. Bearer gsk_live_... |
API_BASE_URL | No | Override the spec default (useful for staging vs production) |
LOG_LEVEL | No | Server log level (info, debug, …) |
Add to .cursor/mcp.json (or Cursor Settings → MCP):
{
"mcpServers": {
"emailguard": {
"command": "npx",
"args": ["-y", "emailguard-mcp"],
"env": {
"API_BASE_URL": "https://api.emailguard.co",
"API_KEY_APIKEYAUTH": "Bearer gsk_live_YOUR_KEY"
}
}
}
}Restart Cursor after saving.
Add a server entry to claude_desktop_config.json:
{
"mcpServers": {
"emailguard": {
"command": "npx",
"args": ["-y", "emailguard-mcp"],
"env": {
"API_BASE_URL": "https://api.emailguard.co",
"API_KEY_APIKEYAUTH": "Bearer gsk_live_YOUR_KEY"
}
}
}
}Each tool maps to one public /api/v1 route — team management (/api/v1/team/...) and, when registered, custom tool routes (/api/v1/tools/...). Tool names follow the OpenAPI operation (for example get_team, list_team_members). Path and body fields match the API reference schemas.
See the API reference sidebar for request shapes and response schemas.
Every tool call is subject to your API key scopes and counts toward the same monthly request quota as a direct REST call.
API_KEY_APIKEYAUTH is missing or invalid; use the full Bearer … value.For HTTP examples, see SDK clients.