How can I add MCP to Antigravity? Encountering issues with integration

Hi everyone,

I’m trying to add the Palantir MCP server to Antigravity, but I’m encountering issues getting it to work. Since there’s no official documentation for Antigravity yet, I tried following the pattern from other MCP server configurations.

Here’s the configuration I added to my mcpServers section:

"mcpServers": {
  "palantir-mcp": {
    "command": "npx",
    "args": [
      "-y",
      "palantir-mcp",
      "--foundry-api-url",
      "https://<enrollment>.palantirfoundry.com"
    ],
    "env": {
      "FOUNDRY_TOKEN": "<token>"
    }
  }
}

However, when I try to use it, I get the following error:

Error: calling "initialize": EOF.

I’ve tried:

  • Verifying the token is valid and has proper permissions
  • Double-checking the Foundry API URL format
  • Restarting Antigravity after configuration

Has anyone successfully integrated the Palantir MCP server with Antigravity? Is there a specific configuration format or additional setup required? Any guidance would be greatly appreciated!

Thank you!

1 Like

I was connecting the GitHub MCP in antigravity and was getting the same error, this method helped see if it works for you

-> create a token (obv for github)

\-> in a cmd (windows not the proj one) run:

\-> npm install -g @modelcontextprotocol/server-GitHub

then run:

\-> npm root -g

you will get something like: C:\\Users\\CZ 3\\AppData\\Roaming\\npm\\node_modules
Now go back to your project and see the mcp_config.json, paste this for GitHub:

{

"mcpServers": {

"github": {

"command": "node",

"args": \[

"C:\\\\Users\\\\CZ 3\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\@modelcontextprotocol\\\\server-github\\\\dist\\\\index.js"

\],

"env": {

"GITHUB_PERSONAL_ACCESS_TOKEN": "<PERSONAL_ACCESS_TOKEN (with repo and delete-repo access)>"

}

}

}


}

Now the GitHub mcp is connected to antigravity.

1 Like