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

**URL:** <https://community.palantir.com/t/how-can-i-add-mcp-to-antigravity-encountering-issues-with-integration/5492>\
**Category:** Ask the Community\
**Tags:** code-repositories\
**Created:** [November 20, 2025, 4:35pm UTC](https://community.palantir.com/t/how-can-i-add-mcp-to-antigravity-encountering-issues-with-integration/5492 "2025-11-20T16:35:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoddukzoa](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/hoddukzoa/32/6359_2.png) [@hoddukzoa](https://community.palantir.com/u/hoddukzoa)\
**Post date:** [November 20, 2025, 4:35pm UTC](https://community.palantir.com/t/how-can-i-add-mcp-to-antigravity-encountering-issues-with-integration/5492/1 "2025-11-20T16:35:26Z")

</div>

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:

```json
"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:

```auto
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!

 ![스크린샷 2025-11-20 오후 10.08.41](https://canada1.discourse-cdn.com/palantir/original/2X/6/60ab88ce118d487ceee64f1fba7f2d0f150b0a39.png)

---

<div class="post-metadata">

**Author:** ![c565a26ebeda636eb00d](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/c565a26ebeda636eb00d/32/6411_2.png) [@c565a26ebeda636eb00d](https://community.palantir.com/u/c565a26ebeda636eb00d)\
**Post date:** [November 24, 2025, 7:57am UTC](https://community.palantir.com/t/how-can-i-add-mcp-to-antigravity-encountering-issues-with-integration/5492/2 "2025-11-24T07:57:08Z")

</div>

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

```auto
-> create a token (obv for github)

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

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

```

then run:

```auto
\-> 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.jso`n, paste this for GitHub:

```auto
{

"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.
