OpsMCP
Provides tools for interacting with GitHub's API, enabling listing issues and pull requests, creating issues (with dry-run by default), and summarizing pull request diffs for repository management.
Provides a tool to retrieve the latest workflow run status for a branch, allowing monitoring of deployment and CI/CD status from GitHub Actions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpsMCPcheck deploy status for main branch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpsMCP
MCP (Model Context Protocol) server that exposes eight typed tools so an AI agent can operate GitHub, Postgres, deploy status, and a sandboxed local filesystem. Credentials stay in the server process; tool inputs are treated as untrusted.
Repository: https://github.com/tanmays0/ops-mcp
Control plane: https://tanmays0.github.io/ops-mcp/
Artifact | Location |
MCP server (stdio) |
|
Eight tools | registered in |
Companion UI |
|
Seeded demo database |
|
Automated tests |
|
CI | GitHub Actions workflow |
Pages deploy |
|
Container image |
|
Agent wiring example |
|
Architecture
Agent (stdio) → FastMCP server
├── tools/ domain tools
├── security/ path sandbox, SQL allowlist, redaction, rate limit
├── adapters/ GitHub HTTP, Postgres
└── config.py Pydantic Settings (env / .env)Related MCP server: GithubMCP
Tools
Tool | System | Behavior |
| GitHub API | List issues/PRs by repo, state, labels |
| GitHub API | Create issue; default |
| GitHub API | PR file list and diff stats (no patches) |
| Postgres | Parameterized SELECT only |
| Postgres |
|
| GitHub Actions | Latest workflow run for a branch |
| Local FS | Literal search under allowlisted roots |
| Local FS | Read file with sandbox and size limit |
Safety
Control | Implementation |
Filesystem | Resolve-then-compare allowlist after symlink resolution |
SQL | sqlglot AST: single SELECT / WITH…SELECT; DDL/DML/multi-statement rejected before connect |
GitHub writes |
|
Secrets |
|
Outbound HTTP | Token-bucket rate limit |
Stack
Python 3.12 · FastMCP · httpx · psycopg · sqlglot · Pydantic Settings · pytest · Docker
Run
git clone https://github.com/tanmays0/ops-mcp.git
cd ops-mcp
uv sync
docker compose up -d
cp .env.example .env
uv run pytest
uv run python -m ops_mcpPopulate .env from .env.example (OPS_MCP_FS_ROOTS, OPS_MCP_DATABASE_URL, OPS_MCP_GITHUB_TOKEN). MCP client config: copy .cursor/mcp.json.example to .cursor/mcp.json with absolute paths. Secrets load from .env only (.env and .cursor/mcp.json are gitignored).
Configuration
Variable | Purpose |
| Colon-separated allowlisted directories |
| Max bytes for |
| Postgres DSN |
| GitHub fine-grained or classic PAT |
| Outbound API rate |
| Log level |
Verification flows
Documented end-to-end flows: DEMO.md.
Spec
Project principles: .specify/memory/constitution.md
Requirements: specs/001-ops-mcp-server/spec.md
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Git-backed platform for skills, tools, and context for AI agents
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables controlled AI-agent access to enterprise-shaped tools with a deny-by-default gated write path, human approval, dry-run execution, and append-only audit logging.1-
- AlicenseAqualityBmaintenanceConnects AI assistants to GitHub repositories, pull requests, issues, commits, and code search while enabling repository visibility controls, CI/CD monitoring, sandboxed local filesystem access, and code quality/security analysis.131MIT
- FlicenseAqualityAmaintenanceEnables coding agents to perform workspace-confined file operations, read-only Git inspection, and structured shell commands, while requiring out-of-band human approval for mutations and external executions and maintaining an audit trail.143-
- AlicenseAqualityBmaintenanceEnables AI coding agents to safely execute commands, run tests, and modify project files inside disposable, policy-enforced Docker sandboxes that are isolated from the host machine and its credentials.15MIT