Config File Locations
Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.jsonCursor: .cursor/mcp.json in your project rootClaude Code: ~/.claude/settings.json or .mcp.json in your project root
Claude Desktop: %APPDATA%\Claude\claude_desktop_config.jsonCursor: .cursor\mcp.json in your project rootClaude Code: %USERPROFILE%\.claude\settings.json or .mcp.json in your project root
Claude Desktop: ~/.config/Claude/claude_desktop_config.jsonCursor: .cursor/mcp.json in your project rootClaude Code: ~/.claude/settings.json or .mcp.json in your project root
Hosted Server (Recommended)
Connects to Coval’s managed MCP endpoint via mcp-remote. No local server to maintain — always up to date.
Claude Desktop
Cursor
Claude Code
Add to your Claude Desktop config file:{
"mcpServers": {
"coval": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.coval.dev/mcp",
"--header",
"X-API-Key: ${COVAL_API_KEY}"
],
"env": {
"COVAL_API_KEY": "your_api_key_here"
}
}
}
}
Add to .cursor/mcp.json in your project:{
"mcpServers": {
"coval": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.coval.dev/mcp",
"--header",
"X-API-Key: ${COVAL_API_KEY}"
],
"env": {
"COVAL_API_KEY": "your_api_key_here"
}
}
}
}
Run in your terminal:claude mcp add coval -- npx -y mcp-remote https://mcp.coval.dev/mcp --header "X-API-Key: YOUR_API_KEY_HERE"
Or add to your .mcp.json:{
"mcpServers": {
"coval": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.coval.dev/mcp",
"--header",
"X-API-Key: ${COVAL_API_KEY}"
],
"env": {
"COVAL_API_KEY": "your_api_key_here"
}
}
}
}
Restart your MCP client after modifying the config file. For Claude Desktop, fully quit from the menu bar — don’t just close the window.
Local Server (NPX)
Runs the Coval MCP server locally on your machine via npm. Useful if you need a custom API endpoint or want to develop against the server.
{
"mcpServers": {
"coval": {
"command": "npx",
"args": ["-y", "@covalai/mcp-server"],
"env": {
"COVAL_API_KEY": "your_api_key_here"
}
}
}
}
Add to .cursor/mcp.json in your project:{
"mcpServers": {
"coval": {
"command": "npx",
"args": ["-y", "@covalai/mcp-server"],
"env": {
"COVAL_API_KEY": "your_api_key_here"
}
}
}
}
Environment Variables
| Variable | Required | Default | Description |
|---|
COVAL_API_KEY | Yes | - | Your API key from dashboard |
COVAL_API_BASE_URL | No | https://api.coval.dev/v1 | Custom API endpoint (local server only) |
LOG_LEVEL | No | info | Logging level: debug, info, warn, error (local server only) |
Local Development
Clone and run from source:
git clone https://github.com/coval-ai/mcp-server
cd coval-mcp-server
npm install
npm run build
# Set your API key
export COVAL_API_KEY=your_api_key_here
# Run the server
npm start
Testing with MCP Inspector
This launches a web UI for testing tool calls interactively.