Skip to main content
Glama

Antigravity MCP Server πŸš€

РусскоС описаниС Π½ΠΈΠΆΠ΅

This project is a Model Context Protocol (MCP) server that acts as a bridge between the Google Antigravity CLI (agy) and various MCP clients (Claude Desktop, Cursor, Windsurf, Cline, etc.).

By using this server, you can empower your AI assistant with the advanced capabilities of Google Antigravity directly inside your favorite IDE.


✨ Features

This server provides 13 specialized tools powered by the Antigravity TUI/CLI ecosystem. Here are the core capabilities:

Core & Productivity

  • agy_task: Execute arbitrary prompts using the Antigravity agent. Perfect for writing code, refactoring, or answering technical questions.

  • agy_chat: Resume and manage conversational threads with context memory (--continue or --conversation).

  • agy_notebook_query: Local RAG agent acting like Google NotebookLM for querying specific directories using --add-dir.

Code & Git

  • agy_analyze: Deep architectural review of files or folders.

  • agy_refactor / agy_generate_tests / agy_explain_error: Developer-focused code tools for fast rewrites, test creation, and debugging compiler stack traces.

Advanced Automation

  • agy_autonomous_agent: Fully autonomous execution (YOLO mode) using the --dangerously-skip-permissions flag and --mode accept-edits.

  • agy_sandbox_agent: Runs commands inside a restricted sandbox environment using the --sandbox flag.

  • agy_security_audit: Strict security and logic audit (OWASP rules, XSS, SSRF, credential leaks) ignoring minor stylistic complaints.

CLI Metadata

  • agy_get_models: Retrieve the list of active Vertex AI/Gemini models configured in agy.

  • agy_get_agents: List available subagents and custom profiles.

  • agy_get_changelog: Show release notes of the installed CLI.


Related MCP server: mcp2agy

πŸ›  Prerequisites

  • Node.js: Version 18 or higher.

  • Antigravity CLI: Must be installed and authorized (agy command should be accessible in the terminal).


πŸš€ Installation

  1. Clone or copy this repository files to your local drive.

  2. Run the automated configuration script for your OS:

    • Windows: Double-click setup.bat

    • macOS: Double-click setup.command

    • Linux: Run ./setup.sh in the terminal

    These scripts will automatically install npm packages, verify your agy installation, and generate a customized config JSON (mcp_config_generated.json) with absolute paths for easy copy-pasting.


βš™οΈ Configuration for MCP Clients

1. Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "antigravity-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/antigravity-mcp/index.js"
      ]
    }
  }
}

2. Cursor (IDE)

  1. Go to Settings -> Cursor Settings -> General -> MCP.

  2. Click + Add Server.

  3. Name: antigravity-mcp.

  4. Type: command.

  5. Command: node "/absolute/path/to/antigravity-mcp/index.js".


Antigravity MCP Server (На русском) πŸ‡·πŸ‡Ί

Π­Ρ‚ΠΎΡ‚ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ прСдставляСт собой сСрвСр Model Context Protocol (MCP), ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ выступаСт Π² Ρ€ΠΎΠ»ΠΈ моста ΠΌΠ΅ΠΆΠ΄Ρƒ Google Antigravity CLI (agy) ΠΈ Ρ€Π°Π·Π»ΠΈΡ‡Π½Ρ‹ΠΌΠΈ MCP-ΠΊΠ»ΠΈΠ΅Π½Ρ‚Π°ΠΌΠΈ (Claude Desktop, Cursor, Windsurf, Cline ΠΈ Π΄Ρ€.).

✨ ВозмоТности

Π‘Π΅Ρ€Π²Π΅Ρ€ прСдоставляСт 13 спСциализированных инструмСнтов:

Π‘Π°Π·ΠΎΠ²Ρ‹Π΅ ΠΈ ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚ΠΈΠ²Π½Ρ‹Π΅

  • agy_task: Π’Ρ‹ΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΠΈΠ·Π²ΠΎΠ»ΡŒΠ½Ρ‹Ρ… запросов Ρ‡Π΅Ρ€Π΅Π· ассистСнта Antigravity.

  • agy_chat: Π”ΠΈΠ°Π»ΠΎΠ³ с сохранСниСм контСкста ΠΈ ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ΠΌ Π²Π΅Ρ‚ΠΎΠΊ пСрСписки.

  • agy_notebook_query: Π›ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉ RAG-Π°Π³Π΅Π½Ρ‚ (Π°Π½Π°Π»ΠΎΠ³ NotebookLM) ΠΏΠΎ вашим Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΌ ΠΏΠ°ΠΏΠΊΠ°ΠΌ.

Код и Git

  • agy_analyze: АрхитСктурный Π°Π½Π°Π»ΠΈΠ· исходного ΠΊΠΎΠ΄Π° Ρ„Π°ΠΉΠ»ΠΎΠ² ΠΈΠ»ΠΈ Ρ†Π΅Π»Ρ‹Ρ… ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³ΠΎΠ².

  • agy_refactor / agy_generate_tests / agy_explain_error: Π£Ρ‚ΠΈΠ»ΠΈΡ‚Ρ‹ для быстрого Ρ€Π΅Ρ„Π°ΠΊΡ‚ΠΎΡ€ΠΈΠ½Π³Π°, Π³Π΅Π½Π΅Ρ€Π°Ρ†ΠΈΠΈ ΠΌΠΎΠ΄ΡƒΠ»ΡŒΠ½Ρ‹Ρ… тСстов ΠΈ объяснСния стСктрСйсов ошибок.

АвтономныС Π°Π³Π΅Π½Ρ‚Ρ‹

  • agy_autonomous_agent: Запуск Π°Π³Π΅Π½Ρ‚Π° Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ ΠΏΠΎΠ»Π½ΠΎΠΉ Π°Π²Ρ‚ΠΎΠ½ΠΎΠΌΠΈΠΈ (YOLO) с Ρ„Π»Π°Π³ΠΎΠΌ --dangerously-skip-permissions (модСль сама ΠΏΡ€ΠΈΠ½ΠΈΠΌΠ°Π΅Ρ‚ ΠΈ примСняСт ΠΏΡ€Π°Π²ΠΊΠΈ ΠΊΠΎΠ΄Π° Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ --mode accept-edits).

  • agy_sandbox_agent: Запуск Π·Π°Π΄Π°Ρ‡ Π² бСзопасной ΠΈΠ·ΠΎΠ»ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠΉ пСсочницС с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ Ρ„Π»Π°Π³Π° --sandbox.

  • agy_security_audit: Π‘Ρ‚Ρ€ΠΎΠ³ΠΈΠΉ Π°ΡƒΠ΄ΠΈΡ‚ бСзопасности ΠΊΠΎΠ΄Π° Π±Π΅Π· ΠΌΠ΅Π»ΠΊΠΈΡ… ΠΏΡ€ΠΈΠ΄ΠΈΡ€ΠΎΠΊ ΠΊ ΡΡ‚ΠΈΠ»ΡŽ (поиск OWASP-уязвимостСй, XSS, ΠΈΠ½ΡŠΠ΅ΠΊΡ†ΠΈΠΉ, сСкрСтов).

БистСмныС ΠΌΠ΅Ρ‚Π°Π΄Π°Π½Π½Ρ‹Π΅

  • agy_get_models: Π’Ρ‹Π²ΠΎΠ΄ списка доступных ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ.

  • agy_get_agents: Π’Ρ‹Π²ΠΎΠ΄ списка настроСнных ΠΏΡ€ΠΎΡ„ΠΈΠ»Π΅ΠΉ ИИ-ассистСнтов.

  • agy_get_changelog: Π§Ρ‚Π΅Π½ΠΈΠ΅ истории ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΉ CLI.


πŸš€ Установка

  1. Π‘ΠΊΠ°Ρ‡Π°ΠΉΡ‚Π΅ Ρ„Π°ΠΉΠ»Ρ‹ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°.

  2. ЗапуститС скрипт автоматичСской настройки ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°:

    • Windows: ЗапуститС setup.bat (Π΄Π²ΠΎΠΉΠ½Ρ‹ΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)

    • macOS: ЗапуститС setup.command (Π΄Π²ΠΎΠΉΠ½Ρ‹ΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ)

    • Linux: Π’Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚Π΅ ./setup.sh Π² Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Π»Π΅

    Π‘ΠΊΡ€ΠΈΠΏΡ‚Ρ‹ автоматичСски выполнят npm install, провСрят статус agy ΠΈ ΡΠ³Π΅Π½Π΅Ρ€ΠΈΡ€ΡƒΡŽΡ‚ ΠΏΠ΅Ρ€ΡΠΎΠ½Π°Π»ΡŒΠ½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» настроСк mcp_config_generated.json с Π°Π±ΡΠΎΠ»ΡŽΡ‚Π½Ρ‹ΠΌΠΈ путями для вашСй ОБ.


πŸ“ License / ЛицСнзия

MIT

Available Tools

13 tools
agy_analyzeC

Perform architectural analysis of files or folders using Antigravity.

Inputs: path (required), question (required), model.

agy_autonomous_agentA

Run the Antigravity agent in fully autonomous mode. Automatically approves modifications and runs commands.

Inputs: prompt (required), cwd, model.

agy_chatB

Engage in an interactive chat session with Antigravity, preserving or resuming conversation threads.

Inputs: prompt (required), agent, model, continueRecent, +1 more.

agy_explain_errorB

Explain compiler, runtime, or stack trace errors and provide actionable fixes.

Inputs: errorLog (required), model.

agy_generate_testsB

Generate automated unit/integration tests for the specified source file.

Inputs: filePath (required), model, testFramework.

agy_get_agentsA

Retrieve the list of all available subagents and specialized profiles in the Antigravity CLI.

Inputs: no named parameters.

agy_get_changelogA

Retrieve the official release notes and changelog history of the Antigravity CLI.

Inputs: no named parameters.

agy_get_modelsA

Retrieve the list of all available models supported by the Antigravity CLI.

Inputs: no named parameters.

agy_notebook_queryB

Run queries using project folders ingested as context (similar to Google NotebookLM).

Inputs: prompt (required), directories (required), model.

agy_refactorC

Refactor target file according to instructions. Returns code changes without conversational fluff.

Inputs: filePath (required), instructions (required), model.

agy_sandbox_agentB

Run tasks inside a restricted sandbox environment to safely investigate code or execute shell scripts.

Inputs: prompt (required), cwd, model.

agy_security_auditB

Perform a strict security audit on target files, scanning for OWASP vulnerabilities and credential leaks.

Inputs: filesToAudit (required), model.

agy_taskB

Run a task using Google Antigravity CLI (agy). The assistant can write code, analyze workspace files, and run commands.

Inputs: prompt (required), mode, yolo, agent, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but agy_task, agy_autonomous_agent, and agy_sandbox_agent all describe running tasks in different modes. The descriptions clarify the differences (autonomous auto-approves, sandbox is restricted), so the overlap is acceptable but not entirely absent.

    Naming Consistency4/5

    All tools share the agy_ prefix, which creates a consistent brand, but the action patterns vary: some use verbs (agy_analyze, agy_refactor), some use nouns as verbs (agy_task, agy_security_audit), and three use agy_get_*. The mix is readable but not perfectly uniform.

    Tool Count5/5

    Thirteen tools is well within the ideal range for a domain-specific CLI wrapper. Each tool maps to a distinct operation or query, and none feel redundant or filler.

    Completeness5/5

    The tool surface covers the core Antigravity CLI capabilities: running tasks (with various modes), interactive chat, analysis, refactoring, test generation, error explanation, security auditing, and retrieving metadata (models, agents, changelog). No obvious dead ends or missing core operations for an agent interacting with this CLI.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Wraps Google Antigravity CLI into 11 typed MCP tools, enabling any MCP client to invoke agy for code review, prototyping, execution, and long-running tasks.
      11
      73 PyPI
      26
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP-native multi-agent security audits for Google Antigravity, orchestrating subagents for 0day research, static analysis, PoC verification, exploit chaining, reporting, and code remediation.
      15
      3
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP-compatible AI clients like Claude Code, Cursor, and Codex to invoke Google Antigravity's Gemini coding agent for repository-aware file operations, command execution, code review, test generation, and quota checks, while also providing a standalone dual-mode CLI.
      7
      MIT