# gridcity [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/chapeee/GRIDCITY  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gridcity

## Description
Local-first server monitoring, database admin and security in a 3D city: SSH servers, PostgreSQL, MySQL, MongoDB, Redis, S3 and AWS as buildings, with attack detection, alerts (push, email, Slack, Telegram), a Doctor that proves fixes, time travel, and an

## Tools
Capabilities this server exposes over MCP:

- **incident_report** — yes
- **security_findings** — yes
- **diagnose** — yes
- **get_topology** — yes
- **list_servers** — yes
- **list_resources** — yes
- **list_runbooks** — yes
- **run_command** — no
- **wait_for_command** — yes

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/chapeee/GRIDCITY), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
npx gridcity-desktop
```

2. Start the server:

```sh
npx gridcity                 # your own servers (connect them in the app), runs in the background
```

3. Start the server:

```sh
npx gridcity mcp             # connect Claude Code, Cursor or any MCP app
```

4. Start the server:

```sh
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. Add to Claude Code:

```sh
claude mcp add --transport http gridcity http://127.0.0.1:4600/mcp \
  --header "Authorization: Bearer <token>" --header "X-Agent-Client: Claude Code"
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/gridcity/readme_

