MCP Ops Gateway
Click on "Install 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., "@MCP Ops GatewaySearch the RAG knowledge base for deployment rollback steps and summarize them."
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.
MCP Ops Gateway
An MCP server that:
Exposes RAG search + ServiceNow + Observability as tools to any MCP client.
Acts as an MCP client itself, proxying calls to remote ServiceNow and Observability MCP servers.
Built on standalone FastMCP 3.x (PrefectHQ), not the mcp v2 beta bundled
class — as of mid-2026, the standalone package is the stable, production
choice for composing/proxying multiple MCP servers.
1. Install
python -m venv .venv && source .venv/bin/activate
pip install -e .
cp .env.example .env # fill in real valuesRelated MCP server: ServiceNow Incident MCP Server
2. Run locally (stdio, for Claude Desktop)
python server.pyAdd to Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"ops-gateway": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/mcp-gateway/server.py"],
"env": {
"SERVICENOW_INSTANCE_URL": "...",
"SERVICENOW_MCP_URL": "...",
"SERVICENOW_CLIENT_ID": "...",
"SERVICENOW_CLIENT_SECRET": "...",
"SERVICENOW_TOKEN_URL": "...",
"OBSERVABILITY_MCP_URL": "...",
"OBSERVABILITY_API_KEY": "..."
}
}
}
}3. Run in production (Streamable HTTP)
export MCP_GATEWAY_TRANSPORT=streamable-http
export MCP_GATEWAY_AUTH_TOKEN=$(openssl rand -hex 32)
python server.pyOr via Docker:
docker build -t mcp-ops-gateway .
docker run -p 8080:8080 --env-file .env mcp-ops-gatewayClients then connect to http://your-host:8080/mcp with
Authorization: Bearer <MCP_GATEWAY_AUTH_TOKEN>.
4. Debug with MCP Inspector
npx @modelcontextprotocol/inspector http://localhost:8080/mcpArchitecture notes / production decisions
Curated proxying, not blind forwarding.
tools/servicenow_tools.pyandtools/observability_tools.pydon't just relay every remote tool. Each tool is explicitly defined with its own Pydantic-validated schema, docstring (which becomes the tool description the LLM sees), and error handling. This is deliberate: exposing a remote server's full raw tool surface to an agent is both a security risk (e.g. accidentaldelete_recordexposure) and a UX problem (vague, remote-server-authored descriptions make for worse agent tool selection).Auth is mandatory over HTTP transport.
server.pyrefuses to start withstreamable-httptransport unlessMCP_GATEWAY_AUTH_TOKENis set. For real production, replaceStaticTokenVerifierwith an OAuth 2.1 / JWT verifier tied to your IdP (Okta/Azure AD) — FastMCP supports pluggableAuthProviders for this.Remote calls get retry + backoff (
clients/base_client.py, viatenacity), because remote MCP servers over a network WILL occasionally time out or drop connections. Only transport-level errors are retried — a 4xx/validation error from the remote tool is NOT retried.Short-lived connections per call. Each
call_toolopens and closes its own connection to the remote server. This is simplest and safest for low/medium QPS. If you're calling a remote server dozens of times/sec, switch to a connection pool / persistentClientheld in ancontextlib.AsyncExitStackat server startup instead — see FastMCP docs onClientlifecycle for the pattern.ServiceNow OAuth token caching (
clients/servicenow_client.py). ServiceNow's REST/MCP layer expects OAuth2 client-credentials tokens, not static API keys. The token is cached in-process and refreshed 60s before expiry rather than fetched on every call.RAG embedding model is baked into the Docker image at build time (see
Dockerfile) so pod cold-starts don't depend on reaching HuggingFace at runtime — important if your network egress is locked down (as is typical in BFSI environments).mask_error_details: consider setting thisTrueonFastMCP(...)in production so internal exception text (which might leak infra details) isn't sent verbatim to the LLM/client. Currently tool-level code catches and summarizes errors instead, which is the safer default.
Extending
To add a new remote MCP server (e.g. a CMDB or a paging system):
Add a client in
clients/<name>_client.pyfollowing the ServiceNow or Observability pattern (whichever auth style matches).Add curated tool wrappers in
tools/<name>_tools.py.Register in
server.py:<name>_tools.register(mcp).
Known remote-server assumption
This code assumes your ServiceNow and Observability remote MCP servers
expose generic tools like get_record/create_record/update_record and
query_timeseries/search_logs/list_active_monitors respectively. Adjust
the tool_name strings and argument shapes in tools/servicenow_tools.py
and tools/observability_tools.py to match whatever remote MCP servers
you're actually pointing at — run list_tools() via RemoteMCPClient
against your real remote server first to see its actual tool names/schemas.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server for API discovery and execution with a token-efficient search -> execute workflow over OpenAPI, Google Discovery, and optional native GraphQL and gRPC sources.18612Apache 2.0
- FlicenseAqualityCmaintenanceA production-ready MCP server that turns any MCP-compatible AI assistant into an AI-powered ServiceNow Incident Management Assistant, exposing incidents, users, CMDB records, and knowledge articles through validated tools.12
- Alicense-qualityDmaintenanceMCP server to interact with ServiceNow instances, enabling ITSM, CMDB, workflow, and knowledge search operations.MIT
- Flicense-qualityAmaintenanceUnified MCP server exposing the full OpenLLM gateway API (one tool per operation), semantic code/docs search, and cross-session memory.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ptiwarikumar-tech/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server