Skip to content

How to add an MCP server to Antigravity

Level 3: Connect AI to your tools. About 6 min. Checked on 19 November 2026.
Stage 3 of 4: Connect AI to your tools

In this lesson you'll add an MCP server to the Antigravity app, IDE or CLI and know which transports and settings it accepts.

Antigravity, Google's agent environment, comes as an app, an IDE and a CLI, and all three take MCP servers. Most of the time you'll pick one from a list; for anything else, there's one JSON file.

The quick way: from the list

As of 19 November 2026, Google's docs describe:

  • App: Customizations in the sidebar → Installed → under MCP Servers, Add MCP Server (+), find the server and Add. Use More actions (⋮) to restart, disable or delete it.
  • IDE: … at the top of the agent side panel → MCP Servers → Install on a supported server.
  • CLI: type /mcp in the prompt panel to open the MCP manager.

Any server: mcp_config.json

In the IDE, … → MCP Servers → Manage MCP Servers → View raw config opens the file. It lives at:

  • ~/.gemini/config/mcp_config.json for every workspace,
  • .agents/mcp_config.json inside a workspace for that workspace.

In the app, Copy Config File Path in the MCP section header gives you the path.

{
  "mcpServers": {
    "sqlite-explorer": {
      "command": "node",
      "args": ["/usr/local/bin/sqlite-mcp-server.js"],
      "env": { "SQLITE_DB_PATH": "/var/data/app.db" }
    },
    "my-remote-server": {
      "serverUrl": "https://api.example.com/mcp/",
      "headers": { "Authorization": "Bearer YOUR_API_TOKEN" }
    }
  }
}

A server needs either command (local) or serverUrl (remote; url works as an alias).

Approvals

Tools from a server you haven't configured permissions for run in Ask mode, so you approve each tool call. You can allow tools by pattern: mcp(server/tool), mcp(server/*) or, for everything, mcp(*). Keep the wide patterns for servers you trust completely.

Default timeouts are 300 seconds to connect and 180 seconds per tool call; timeoutSeconds overrides both.

Servers developers use

MCP servers for developer tools from the directory, most popular first.

More for developer tools
  1. Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.6K GitHub stars
    • Developer tools
  2. Python framework for building MCP servers, clients and interactive apps

    Not checked yet
    • Open source
    • 28.7K GitHub stars
    • Developer tools
  3. Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.8K GitHub stars
    • Knowledge and memory
  4. Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  5. CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 468K GitHub stars
    • Developer tools

In short

  • Pick from the built-in list, or edit mcp_config.json (global or per workspace).
  • command for local servers, serverUrl for remote ones, Streamable HTTP only.
  • Allow tools by pattern only when you trust the server.

What to try next

Share this lesson

Lesson 12 of 13 in this path

Words used in this lesson

Sources

Official documentation, checked on 19 November 2026. Products change: if a step differs, the source has the current version.

Get the next lesson

New Academy lessons are announced in the weekly AI-Powered email.