Prerequisites
- automagik-tools installed:
uvx automagik-tools list
- Cursor IDE from cursor.sh
- API keys (if needed for specific tools)
Configuration File Location
Cursor MCP config location: ~/.cursor/mcp.json
Create the file if it doesn’t exist:
# macOS/Linux
touch ~/.cursor/mcp.json
# Windows
type nul > %USERPROFILE%\.cursor\mcp.json
Tested Configuration:
{
"mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
}
}
}
Test Connection:
- Save
~/.cursor/mcp.json
- Restart Cursor (or reload window: Cmd/Ctrl+R)
- Open Cursor AI chat
- Ask: “what MCP tools are available?”
- Expected: Should list “genie” tools
Verification:
# Generate config automatically
uvx automagik-tools mcp-config genie
# Output shows exact JSON for Cursor
Example 2: Evolution API (With Auth)
Tested Configuration:
{
"mcpServers": {
"evolution-api": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "evolution-api"],
"env": {
"EVOLUTION_API_BASE_URL": "http://localhost:8080",
"EVOLUTION_API_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Test Connection:
- Replace
YOUR_API_KEY_HERE with your actual key
- Save and restart Cursor
- Ask: “what evolution-api capabilities do you have?”
- Expected: Lists WhatsApp messaging tools
Verification:
# Generate config for evolution-api
uvx automagik-tools mcp-config evolution-api
# Shows config with required env vars
Tested Configuration:
{
"mcpServers": {
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
}
}
}
Test Connection:
- Save and restart Cursor
- Ask: “what omni tools are available?”
- Expected: Shows omnichannel messaging tools
Verification:
uvx automagik-tools mcp-config omni
Tested Configuration:
{
"mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
},
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
},
"evolution-api": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "evolution-api"],
"env": {
"EVOLUTION_API_BASE_URL": "http://localhost:8080",
"EVOLUTION_API_API_KEY": "YOUR_KEY"
}
}
}
}
Test Connection:
Ask: “list all MCP servers you can access”
Expected: Shows all three tools with their capabilities
Test It Works:
# Test conversion
uvx automagik-tools openapi https://api.github.com/openapi.json -t stdio
# Expected output:
# INFO Created FastMCP OpenAPI server with XXX routes
# INFO Starting MCP server
Press Ctrl+C to stop.
Tested Configuration:
{
"mcpServers": {
"github-api": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"openapi",
"https://api.github.com/openapi.json"
],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Test Connection:
- Get token from https://github.com/settings/tokens
- Add to config and restart Cursor
- Ask: “use github-api to list my repositories”
- Expected: Cursor uses GitHub API via MCP
Troubleshooting
Check Cursor MCP status:
- View → Output
- Select “MCP” from dropdown
- Look for connection errors
Test tool directly:
uvx automagik-tools tool genie -t stdio
# Expected:
# INFO Starting MCP server 'Genie' with transport 'stdio'
Solution:
# Verify installation
uvx automagik-tools list
# Reinstall if needed
uvx --reinstall automagik-tools@latest list
# Check config file exists
ls -la ~/.cursor/mcp.json
# Validate JSON syntax
cat ~/.cursor/mcp.json | python -m json.tool
Problem: Connection refused
Verify command works:
# Test each tool
uvx automagik-tools tool TOOLNAME -t stdio
# Should output "Starting MCP server..." without errors
If this fails, the tool won’t work in Cursor.
Check logs:
# Cursor output panel: View → Output → MCP
# Look for error messages
Problem: Authentication errors
Test API access:
# Check env vars are set correctly
echo $EVOLUTION_API_API_KEY
# Test API endpoint
curl -H "X-API-KEY: YOUR_KEY" http://localhost:8080/health
Verify JSON syntax:
# No trailing commas!
# Use double quotes, not single quotes
# Escape special characters in strings
cat ~/.cursor/mcp.json | python -m json.tool
Generate Config Helper
Use the built-in generator:
# For any tool
uvx automagik-tools mcp-config TOOLNAME
Example output:
MCP Configuration for Cursor:
{
"genie": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"tool",
"genie"
]
}
}
To use this configuration:
1. Copy the JSON above
2. Open ~/.cursor/mcp.json (or create it)
3. Add this configuration to the 'mcpServers' section
4. Restart Cursor
✅ Configuration generated successfully!
Wrap in "mcpServers": { ... } if needed.
Verification Checklist
Real Config Example
Working config from production:
{
"mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
},
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
}
}
}
Location: ~/.cursor/mcp.json
Test: Open Cursor, ask “what MCP servers are connected?”
Advanced: Custom Base URL
For OpenAPI tools with different base URLs:
{
"mcpServers": {
"my-api": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"openapi",
"https://example.com/openapi.json",
"--base-url",
"https://api.example.com"
],
"env": {
"API_KEY": "your_key"
}
}
}
}
Test it works:
uvx automagik-tools openapi https://example.com/openapi.json \
--base-url https://api.example.com \
-t stdio
Next Steps
All configs tested with Cursor 0.40+ and automagik-tools latest version.