Cursor MCP Setup for Production Logs (~/.cursor/mcp.json Guide)
How to wire Cursor's MCP client to production logs safely using a user-scoped read-only token instead of committing secrets or pasting raw stack traces.
Read-only
Scoped Bearer key outside git
2 MCP tools
whats_broken + search_logs
60 sec
One-paste setup from /coding-agent
Key takeaway
Place observability MCP credentials in ~/.cursor/mcp.json (never .cursor/mcp.json inside git) with a read-only Bearer token so Cursor can call whats_broken and search_logs directly.
User-level vs repo-level mcp.json in Cursor
Cursor loads Model Context Protocol servers from two locations: a project-relative .cursor/mcp.json file and a user-global ~/.cursor/mcp.json file.
Production observability keys belong strictly in ~/.cursor/mcp.json. Keeping the token in your home directory prevents accidental git commits while making production log lookup available across frontend and backend repositories.
{
"mcpServers": {
"libra-logs": {
"url": "https://libra.exla.ai/logs/api/mcp",
"headers": {
"Authorization": "Bearer llk_read_your_scoped_key"
}
}
}
}Prompts that turn customer bug reports into verified diffs
Once Cursor shows a green indicator next to libra-logs in Settings -> MCP, your agent can inspect live customer impact before editing a single file.
- Triage one account: Ask Cursor: 'Check whats_broken for Acme Corp in the last 24 hours and trace the failing route in this repo.'
- Verify silent HTTP 200s: Ask Cursor: 'Run search_logs for status:200 and webhook rejection in the last 2 hours, then show the handler line that swallowed the error.'
- Confirm post-deploy health: After shipping a fix, ask Cursor whether any new log lines matched the old failure pattern after the deploy timestamp.
Security checklist for IDE log access
Treat coding-agent telemetry access with the same discipline as production database credentials: issue one read-only key per engineer, never grant write or delete scopes to an IDE client, and revoke stale keys in Settings when rotating laptops.
Simple pricing · 30-day free trial
Stop paying per indexed log event. Group bugs by customer instead.
$20/mo
1-2 employees · up to 25 GB
$150/mo
3-9 employees · up to 100 GB + Slack alerts
10+ staff
We beat your Datadog/Sentry bill