Skip to main content
Perplexity

Search documentation

Type to search this documentation.

On this pageOverview

Perplexity MCP Server for Google Antigravity

Use Perplexity's hosted Model Context Protocol (MCP) server to give Google Antigravity's agent access to Perplexity search, answers, research, and reasoning. The server runs remotely, so you do not need to install a local package.

Configure Perplexity MCP in Google Antigravity

Section titled “Configure Perplexity MCP in Google Antigravity”
  1. Create a Perplexity API key

  2. Open the global MCP configuration

    Open or create ~/.gemini/config/mcp_config.json. Google Antigravity also supports a workspace-level .agents/mcp_config.json, but the global file is the safer place for a configuration containing your API key.

  3. Add the hosted Perplexity server

    Add the perplexity entry under mcpServers. If the file already contains other servers, merge this entry into the existing object.

    JSON
    {
      "mcpServers": {
        "perplexity": {
          "serverUrl": "https://api.perplexity.ai/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_PERPLEXITY_API_KEY"
          }
        }
      }
    }

    Replace YOUR_PERPLEXITY_API_KEY with your key. Antigravity requires serverUrl for remote Streamable HTTP MCP servers; url and httpUrl are not supported.

  4. Verify the connection and permissions

    Save the file and reopen Antigravity if the server does not appear. In MCP management, confirm that the Perplexity server exposes these tools:

    • perplexity_search
    • perplexity_ask
    • perplexity_research
    • perplexity_reason

    By default, unconfigured MCP tools run in Ask permission mode, so Antigravity requests your approval before running them. You can change tool permissions in Antigravity's policy configuration after confirming the connection works.

This setup lets the Antigravity agent call Perplexity through MCP while it works on your project. It does not add Perplexity API calls to the application you are building.

For other Antigravity MCP settings, see Google's MCP configuration reference.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu