# LLMGRAPH for Antigravity

> Add the LLMGRAPH MCP server to Antigravity on Windows: the config file, the cmd /c npx form, and how to check it connected.

Add LLMGRAPH to Google Antigravity with one command or one entry in `.agents/mcp_config.json`; on Windows, start the server as `cmd /c npx -y llmgraph-mcp`. Antigravity is tested by us: we ran it against the server, and an independent tester ran it on a separate Windows 11 machine.

## 1. Add the server to Antigravity

Add (tested by us): .agents/mcp_config.json (workspace) or ~/.gemini/config/mcp_config.json (global)

```sh
agy mcp add llmgraph -- npx -y llmgraph-mcp
```

Or as a file entry:

```json
{
  "mcpServers": {
    "llmgraph": {
      "command": "npx",
      "args": [
        "-y",
        "llmgraph-mcp"
      ]
    }
  }
}
```

agy mcp add writes the global configuration. The IDE and App use the same file format.

On Windows, start the server as `cmd /c npx -y llmgraph-mcp`. An independent tester found that this finds `npx.cmd` reliably.

## 2. Check that it connected

Check (tested by us; your agent lists them as tools):
- Antigravity CLI: type /mcp in the prompt panel and press Enter to open the MCP manager (status rings for active, disconnected, loading servers).
- agy mcp list prints NAME, TYPE, STATUS, COMMAND/URL for the configured servers.

## 3. Sign in once

The first time your agent asks a question, LLMGRAPH answers with a sign-in link and a 6-character code. In a terminal you can run this instead:

```sh
npx -y llmgraph-mcp login
```

The link works for 10 minutes. Open the full link, including everything after the `#`, sign in with Google, compare the code on the page with the one your agent shows, and approve this device. Approving your first device starts your 7-day trial. The full steps are in [Set up with your agent](https://beta.llmgraph.in/docs/start.md).

## 4. Make sure Antigravity uses it

Adding a server doesn't make an agent use it.

Add a line to your agent's instructions file, `AGENTS.md` (GEMINI.md is also read):

```text
Before changing code, ask the llmgraph MCP tools who_calls and what_breaks_if_changed; after editing, run check_my_changes; read each answer's label and its lines about what it cannot see.
```

We can't promise that an agent asks on its own. Every answer starts with `llmgraph · `: look for it where Google Antigravity shows what it asked.

## 5. The five questions

| Question | What it answers |
| --- | --- |
| [who_calls](https://beta.llmgraph.in/docs/questions/who_calls.md) | Every place that calls this function, plus calls we can't see. |
| [what_breaks_if_changed](https://beta.llmgraph.in/docs/questions/what_breaks_if_changed.md) | Everything that depends on this, directly or indirectly, and what we can't see. |
| [check_my_changes](https://beta.llmgraph.in/docs/questions/check_my_changes.md) | After editing: callers you didn't update, and anything we can't see. |
| [what_is_unknown](https://beta.llmgraph.in/docs/questions/what_is_unknown.md) | Where our view is blind (dynamic calls, unknown types, unreadable files) and why. |
| [explain](https://beta.llmgraph.in/docs/questions/explain.md) | Why we said this: the evidence behind one answer line. |

## Other agents

- [LLMGRAPH for Claude Code](https://beta.llmgraph.in/docs/agents/claude-code.md): MCP setup on Windows.
- [LLMGRAPH for Cursor](https://beta.llmgraph.in/docs/agents/cursor.md): MCP setup on Windows.
- [LLMGRAPH for Codex](https://beta.llmgraph.in/docs/agents/codex.md): MCP setup on Windows.
- [LLMGRAPH for Gemini CLI](https://beta.llmgraph.in/docs/agents/gemini-cli.md): MCP setup on Windows.
- [LLMGRAPH for OpenCode](https://beta.llmgraph.in/docs/agents/opencode.md): MCP setup on Windows.
- [LLMGRAPH for Windsurf](https://beta.llmgraph.in/docs/agents/windsurf.md): MCP setup on Windows.

- [Set up with your agent](https://beta.llmgraph.in/docs/start.md): Every agent on one page, plus the sign-in steps and what to do when something goes wrong.
- [The MCP server](https://beta.llmgraph.in/docs/mcp-server.md): What the server answers and what it needs.
- [Questions and answers](https://beta.llmgraph.in/docs/faq.md): Short answers to common questions.
