observe-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
observe-mcp
Give your AI agent grounded, read-only access to production: Postgres, Sentry, GitHub. Built for Cursor, Claude Desktop, Claude Code, Zed, and any other MCP client.
Stop asking agents "why might the API be slow?" and hearing a guess. Let them look.
You: Why did signups drop yesterday?
Agent (via observe-mcp):
- Queried pg_describe_schema → found `users` table
- Ran: SELECT date_trunc('day', created_at) AS d, count(*) FROM users
WHERE created_at > now() - interval '14 days' GROUP BY 1
- Correlated: sentry_list_issues returned a spike in `AuthProvider.initialize`
errors on 2026-11-05 at 14:32
- Cross-ref: gh_recent_commits shows commit abc123 "auth: add new SSO flow"
merged at 14:28 the same day
Yesterday's signup drop lines up with commit abc123. Revert that and
re-check.Why this exists
General coding agents can reason about code, but they can't reliably answer questions grounded in your live production state. They don't have your database, your error feed, or your deploy history. observe-mcp plugs that gap — safely.
Related MCP server: Safe DB Gateway
Install
From source (works today)
git clone https://github.com/AvaneshJ/observe-mcp.git
cd observe-mcp
npm install
npm run build
node dist/index.js wizard # interactive setup
node dist/index.js tui # terminal dashboard
node dist/index.js inspect # web inspector on http://localhost:3030From npm (once published)
npx bharatcode-observe-mcp wizardThe wizard creates ~/.config/observe-mcp/config.yaml with chmod 600.
Wire it into an agent
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"observe": {
"command": "node",
"args": ["/absolute/path/to/observe-mcp/dist/index.js"]
}
}
}Swap command/args for npx -y bharatcode-observe-mcp once the package is on npm.
Cursor — the same block in ~/.cursor/mcp.json.
Try it in 60 seconds (no real prod needed)
git clone https://github.com/AvaneshJ/observe-mcp.git
cd observe-mcp
npm install && npm run build
docker compose -f demo/docker-compose.yaml up -d
OBSERVE_MCP_CONFIG=./demo/config.demo.yaml BHARATCODE_API_KEY=dummy node dist/index.jsThen in Claude Desktop, ask: "How many orders failed in the last 24 hours and which products were involved?"
Tools exposed to the agent
Tool | What it does |
| Lists tables + columns the agent may query (deny-listed columns are hidden). |
| Runs a read-only |
| Lists recent Sentry issues for an allow-listed project. |
| Fetches one event payload. |
| Lists recent commits on an allow-listed repo. |
| Lists recent releases (deploys). |
| Merges Sentry errors, GitHub commits and releases into one sorted timeline for a time window — the single most useful tool for "what broke right around X?". |
Safety
This is the part you should read before pointing it at real data. See SECURITY.md.
Short version:
Postgres: refuses superusers. Only
SELECT. Column-level redaction. Auto-LIMIT. Query timeout.Prompt injection: every result wrapped in
<untrusted-data>tags with an explicit note telling the agent not to follow instructions inside.Credentials: live only in a
chmod 600config, never in results, never in audit logs.Audit: every call appended to
~/.config/observe-mcp/audit.log.Budget: hard daily cap on calls (default 1000).
Network: only the hosts you configure plus the BharatCode base URL.
How BharatCode is used
The MCP uses BharatCode's model API for internal safety passes before any data leaves the server:
Regex PII redaction (always on) — strips emails, Indian phone numbers, PAN, Aadhaar, card numbers, IPs from every result.
LLM PII redaction — when a BharatCode key is configured, a model pass catches odd formats regex misses (names paired with addresses, passport numbers, bank accounts).
Future (day 3): suspicious-query shape analysis and large-result summarization.
If no BharatCode key is set the server still works in regex-only mode — set safety.redact_pii: false to disable even that.
License
MIT. See LICENSE.
Built for the BharatCode Build League.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Governed SQL access to your databases: redaction, query review and an audit log.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to query a Postgres data warehouse through a governed, read-only SQL interface with policy enforcement, row limits, schema-level PII isolation, and a full audit trail.1-
- AlicenseAqualityBmaintenanceEnables AI agents to query PostgreSQL databases securely with read-only defaults, PII masking, rate limiting, and human-approved, expiring mutation tokens.91Apache 2.0
- AlicenseNot gradedqualityBmaintenanceGives AI agents read-only access to Postgres with parser-checked queries, hidden tables and columns, row limits and timeouts, caller-bound Row-Level Security, and a tamper-evident audit log.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query DuckDB, Postgres, and BigQuery through a governed, read-only layer with a semantic model, SQL guard, role-based row policies, PII pseudonymization, audit logging, and cost caps.32 PyPIMIT