Platform administrators must first enable Palantir MCP for use through Control Panel. Access can be configured for a specific subset of users or groups. Palantir MCP is in Control Panel under Code Repositories.
.npmrc
to use an auth token to connect to PalantirGenerate a user token from Palantir. Review the guide on how to generate a user token.
Set that user token as a persistent environment variable named FOUNDRY_TOKEN
.
In terminal, run the following command to ensure your FOUNDRY_TOKEN
is used to download Palantir MCP. You will need to update <enrollment>
to your Palantir enrollment URL.
Copied!1
npm config set '//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken=${FOUNDRY_TOKEN}' --location user
Review Cline documentation ↗ to install Palantir MCP into your Cline extension with the configuration below. Update <enrollment>
and <token>
to your correct enrollment and user token.
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ "mcpServers": { "Palantir": { "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" }, "disabled": false } } }
Review Continue documentation ↗ to install Palantir MCP into your Continue extension with the configuration below. Update <enrollment>
, <token>
to your correct enrollment and user token.
Copied!1 2 3 4 5 6 7 8 9 10 11
mcpServers: - name: Palantir command: npx args: - "-y" - "@palantir/mcp@latest" - "--foundry-api-url" - "https://<enrollment>.palantirfoundry.com" env: FOUNDRY_TOKEN: "<token>" NPM_CONFIG_REGISTRY: "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/"
Review Cursor documentation ↗ to install Palantir MCP into your Cursor IDE with the configuration below. Update <enrollment>
and <token>
to your correct enrollment and user token.
For macOS:
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ "mcpServers": { "Palantir": { "type": "stdio", "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" } } } }
For Windows:
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ "mcpServers": { "Palantir": { "type": "stdio", "command": "cmd /k npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" } } } }
Review VS Code documentation ↗ to install Palantir MCP into your VS Code IDE with the configuration below. Update <enrollment>
and <token>
to your correct enrollment and user token.
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
"mcp": { "inputs": [ { "type": "promptString", "id": "foundry-token", "description": "Foundry user token", "password": true } ], "servers": { "Palantir": { "type": "stdio", "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "${input:foundry-token}", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" } } } }
Review the Claude Code documentation ↗ to install Palantir MCP in your Claude Code CLI. Review the documentation around scoping where MCP should be installed. We recommend installing the MCP in local scope ↗ for each project so Claude can load the correct token and compass folder depending on the project you are working in.
<enrollment>
and<token>
with your enrollment and user token.Copied!1
claude mcp add palantir-mcp -e FOUNDRY_TOKEN=<token> -e NPM_CONFIG_REGISTRY=https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/ -- npx "-y" "@palantir/mcp@latest" "--foundry-api-url" "https://<enrollment>.palantirfoundry.com"
Follow the Windsurf documentation ↗ to install Palantir MCP into your Windsurf IDE with the configuration below. Update <enrollment>
and <token>
to your correct enrollment and user token.
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ "mcpServers": { "Palantir": { "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" } } } }