Gridcity logo

Gridcity

Local-first MCP monitoring for infrastructure health, security findings, topology, diagnosis, and approved remediation.

Install Gridcity

Run the project’s own setup commands, in order.

Setup steps from the project

gridcity installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    npx gridcity-desktop
    
  2. 2. Start the server
    npx gridcity                 # your own servers (connect them in the app), runs in the background
    
  3. 3. Start the server
    npx gridcity mcp             # connect Claude Code, Cursor or any MCP app
    
  4. 4. Start the server
    docker run -d --name gridcity -p 127.0.0.1:4600:4600 \
      -v gridcity-config:/config -v gridcity-data:/data ghcr.io/chapeee/gridcity
    
  5. 5. Add to Claude Code
    claude mcp add --transport http gridcity http://127.0.0.1:4600/mcp \
      --header "Authorization: Bearer <token>" --header "X-Agent-Client: Claude Code"
    

Overview

gridcity MCP server connects an AI agent to a local GRIDCITY instance over Streamable HTTP, covering SSH servers, databases, Redis, MongoDB, buckets, load balancers, and endpoints. Its tools return incident summaries, security findings, infrastructure topology, resource inventories, runbooks, and Doctor-style diagnoses with fixes verified through real connections. Reach for gridcity when an agent needs fleet-wide monitoring context without sending server data to a cloud service. Actions that could run commands require approval in the GRIDCITY interface.

Use cases

  • Investigate fleet-wide incidents by likely root cause
  • Check which resources are affected by a failing target
  • Review active attacks and infrastructure exposures
  • Diagnose connectivity failures and verify proposed fixes

Key features

  • Streamable HTTP MCP endpoint
  • Incident reports grouped by root cause
  • Security attack and exposure findings
  • Topology and blast-radius inspection
  • Connection diagnosis with verified fixes
  • Human approval before command execution

Tools9

What Gridcity lets your agent do. Expand a tool for its parameters.

Self-reported~36 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Gridcity works

What gridcity does

GRIDCITY presents infrastructure as a monitored fleet and exposes that operational view to AI agents through MCP. The monitored environment can include SSH servers, PostgreSQL and MySQL databases, MongoDB, Redis, S3 or other buckets, load balancers, and HTTP or TCP endpoints. Its local-first design keeps the application, configuration, and collected server information on the machine running GRIDCITY; the project states that it uses no account, cloud service, or telemetry.

The MCP interface is intended for investigation rather than unrestricted automation. An agent can ask what is unhealthy, investigate likely causes, inspect security issues, and understand dependencies between resources. Commands requested by an agent wait for a human approval in the GRIDCITY application before execution.

How it works

Start GRIDCITY first, then expose its MCP endpoint at the local Streamable HTTP URL. The gridcity mcp command prints a connection command and a JSON configuration containing the session token. Clients authenticate with a bearer token and can identify themselves with the X-Agent-Client header.

The server reflects the state known by the GRIDCITY application. incident_report groups unhealthy items by likely root cause and describes affected dependencies. get_topology returns districts, declared or observed links, load-balancer targets, and a target's blast radius. diagnose follows a target's connection path from DNS through port, TLS, and login, then reports fixes proven by a real connection.

Setup and configuration

Node.js 22.12 or newer is required for the command-line installation. Run npx gridcity to start a local instance, then run npx gridcity mcp to obtain client setup details. A simulated environment is available with npx gridcity demo for trying the MCP tools without connecting a real fleet.

Docker is also supported. The published container maps the local MCP application to port 4600 and uses separate volumes for configuration and data:

Terminal
docker run -d --name gridcity -p 127.0.0.1:4600:4600 \
  -v gridcity-config:/config -v gridcity-data:/data \
  ghcr.io/chapeee/gridcity

The endpoint is http://127.0.0.1:4600/mcp. Use the bearer token printed by GRIDCITY in the Authorization header. Clients that only support stdio can connect through mcp-remote.

Tools and capabilities

  • incident_report: review unhealthy resources, probable root causes, explanations, and risks.
  • security_findings: inspect attacks and exposures such as brute-force activity, suspicious logins, public buckets, and open databases, including checks that could not run.
  • diagnose: run the Doctor-style connection sequence for one target and report a verified fix.
  • get_topology: inspect infrastructure relationships and blast radius.
  • list_servers and list_resources: inventory monitored servers and resources.
  • list_runbooks: retrieve available operational runbooks.
  • wait_for_command: wait for an approved command operation; command execution itself is subject to approval in the application.

Limitations and notes

The MCP service depends on a running GRIDCITY instance and an active session token. Its endpoint is local by default, using loopback port 4600 in the documented command. The demo environment contains simulated data and does not provide real terminal access, database management, alerts, or agent operations. Desktop builds are not code-signed, so operating systems may show an installation warning.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gridcity

gridcity is an MCP server that connects AI agents to a local GRIDCITY infrastructure monitor for SSH servers, databases, buckets, and related resources. Its main tools provide incident reports, security findings, topology, resource lists, runbooks, and Doctor-style diagnosis, while command operations wait for human approval in the GRIDCITY app.

Run GRIDCITY with Node.js 22.12 or newer using `npx gridcity`, then run `npx gridcity mcp` to print the connection command and token-bearing JSON configuration. Docker is also supported, and the project publishes desktop installers for Windows, macOS, and Linux.

Yes, gridcity works with Cursor through its Streamable HTTP MCP endpoint. Run `gridcity mcp --json`, add the generated server configuration to `~/.cursor/mcp.json`, and include the bearer token plus the `X-Agent-Client` header.

Commands require approval before they run. An AI agent can request command-related work, but each command waits for a click on an approval card in the GRIDCITY application.

GRIDCITY documents setup examples for Claude Code, Cursor, Windsurf, VS Code, Claude Desktop, and other MCP applications. Clients that only support stdio can use `mcp-remote` as a bridge to the local HTTP endpoint.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGridcity AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gridcity?style=directory)](https://allmcps.com/mcp/gridcity)
HTML Embed
<a href="https://allmcps.com/mcp/gridcity"><img src="https://allmcps.com/api/badge/gridcity?style=directory" alt="Gridcity on AllMCPs" /></a>