# mcp-server-google-antigravity [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/TurkerYakup/mcp-server-google-antigravity  
**GitHub Stars:** 3  
**npm Downloads (last month):** 486  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-google-antigravity

## Description
MCP server exposing Google Antigravity (agy CLI / Gemini): jobs, codebase analysis, file tools.

## Tools
Capabilities this server exposes over MCP:

- **use_antigravity** — Delegate a task (async). Returns a `jobId` immediately. Params: `prompt`, `thinking_depth` (low/high), `add_dirs` (folders agy may read/write), `auto_approve`, `new_project`, `model`, `mode` (plan/accept-edits), `agent`, `project`, `sandbox`, `write_to_file`, `extract` (optional `"last_code_block"`…
- **antigravity_continue** — Continue the previous conversation (or a specific `conversation_id`) with a new prompt.
- **antigravity_result** — Get a job's result by `jobId`. Supports long-polling via optional `wait_ms` and `poll_interval_ms`. While running, returns a lean payload (`{ status, jobId, chars, tail, startedAt }`). On done/error, returns full record (including `durationMs` and `bytes` telemetry).
- **antigravity_jobs** — List recent jobs and statuses.
- **antigravity_cancel** — Kill a running job by `jobId`.
- **antigravity_cleanup** — Delete old job files by age (`older_than_hours`).
- **antigravity_create_folder** — Create a folder (recursive), done directly by the server.
- **antigravity_create_file** — Create/write a text file (creates parent dirs); `overwrite:false` to protect existing.
- **antigravity_create_tree** — Build a whole folder/file tree from a JSON spec.
- **antigravity_read_file** — Read a UTF-8 text file (instant); optional `max_bytes` cap.
- **antigravity_list_dir** — List a folder's entries.
- **antigravity_models** — List available models (`agy models`).
- **antigravity_agents** — List available agent profiles (`agy agents`).
- **antigravity_health** — Check that `agy` is reachable + report effective defaults. **Run this first when something's off.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What mcp-server-google-antigravity MCP server does

mcp-server-google-antigravity MCP server connects an MCP client to Google's Antigravity terminal agent through the `agy` command-line interface. Antigravity uses Gemini under the hood, while the MCP layer presents the agent's operations as callable tools.

The main workflow is asynchronous. A client sends a prompt with `use_antigravity`, receives a `jobId` without waiting for the task to finish, and later retrieves output with `antigravity_result`. This fits repository analysis, code generation, long-running edits, and other tasks where the calling model should remain available while agy works.

The server also includes direct filesystem helpers. These can create folders, write text files, build a file tree from JSON, read UTF-8 files, and list directory contents. They operate separately from delegated agy jobs.

## How it works

`use_antigravity` accepts options for model selection, thinking depth, project and agent settings, sandboxing, approval behavior, edit mode, additional readable or writable directories, and optional output extraction. The call returns a job identifier and running status.

Use `antigravity_result` with that identifier to retrieve progress or the completed record. Long-polling is available through `wait_ms` and `poll_interval_ms`. Running jobs return a smaller status payload with output length and a tail of recent output; completed or failed jobs include the full record and telemetry such as duration and byte count.

`antigravity_continue` sends another prompt in the previous conversation, or in a specified conversation. `antigravity_jobs`, `antigravity_cancel`, and `antigravity_cleanup` provide job history, termination, and removal of old job files. `antigravity_models`, `antigravity_agents`, and `antigravity_health` expose runtime discovery and diagnostics. The health check is the first useful diagnostic when agy is unavailable or defaults appear incorrect.

## Setup and configuration

Run mcp-server-google-antigravity MCP server with Node.js 18 or newer and an installed, authenticated `agy` CLI. The first agy invocation opens Google sign-in, and `agy models` can verify that the CLI is available. Install the MCP package with `npx -y mcp-server-google-antigravity`, install it globally with npm, or run the repository's `index.js` after installing dependencies.

Register the command in an MCP client using stdio configuration. The README provides configurations for Claude Desktop and Claude Code, including a Windows `cmd` wrapper when Claude Desktop cannot launch `npx` directly. Restart Claude Desktop completely after changing its configuration.

All environment settings are optional. `AGY_PATH` selects a nonstandard executable location; `AGY_MODEL` sets the default model; `AGY_AUTO_APPROVE` controls permission skipping; and `AGY_SANDBOX` enables sandboxing by default. `AGY_PRINT_TIMEOUT`, `AGY_HEARTBEAT_MS`, and `AGY_MODEL_TTL_MS` adjust timeout, progress notification, and model-list caching behavior.

## Tools and capabilities

- Delegate asynchronous prompts with `use_antigravity`.
- Continue an existing agent conversation.
- Poll, inspect, cancel, list, and clean up jobs.
- Discover available agy models and agent profiles.
- Check agy reachability and effective defaults.
- Create folders, files, and JSON-defined directory trees.
- Read capped UTF-8 file content and list directory entries.

## Limitations and notes

The server depends on the external `agy` executable and its Google authentication, so agy must be installed and reachable in the server's environment. File access for delegated work depends on the directories supplied to the job. Approval and sandbox settings affect whether agy can make changes or run with terminal restrictions.

`node-pty` is optional and is used for cleaner Windows output; installation can fall back when it is unavailable. The package is intended to run on macOS, Windows, and Linux. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/mcp-server-google-antigravity/readme_

