Installation

The instructions below explain how to set up Palantir MCP with a supported IDE. Alternatively, use the AI development tools available in a VS Code workspace to access Palantir MCP.

1. Enable Palantir MCP in Control Panel

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.

The Palantir MCP in Control Panel

2. Configure your IDE to use Palantir MCP

See instructions for:

Claude Code

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace <enrollment>.palantirfoundry.com with your Palantir domain. Do not prefix with "https://".
  3. Review the Claude Code documentation ↗ to install Palantir MCP in your Claude Code CLI, particularly the documentation around scoping where MCP should be installed. We recommend installing the MCP at the user scope ↗ level so that Palantir MCP is available in all of your projects.
  4. Run the following commands in your terminal:
Copied!
1 2 3 4 5 6 7 8 export FOUNDRY_HOST="<enrollment>.palantirfoundry.com" export FOUNDRY_TOKEN=<token> claude mcp add palantir-mcp \ --scope user \ -e NPM_CONFIG_REGISTRY=https://$FOUNDRY_HOST/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/ \ -e "NPM_CONFIG_//$FOUNDRY_HOST/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken"='${FOUNDRY_TOKEN}' \ -e FOUNDRY_TOKEN=$FOUNDRY_TOKEN \ -- npx "-y" "@palantir/mcp@latest" "--foundry-api-url" "https://$FOUNDRY_HOST"

Cline

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace the three instances of <enrollment>.palantirfoundry.com with your Palantir domain.
  3. Review the Cline documentation ↗ to install Palantir MCP into your Cline extension with the configuration below.
Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "mcpServers": { "Palantir": { "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/", "NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken": "${FOUNDRY_TOKEN}", "FOUNDRY_TOKEN": "<token>" }, "disabled": false } } }

Continue

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace the three instances of <enrollment>.palantirfoundry.com with your Palantir domain.
  3. Review the Continue documentation ↗ to install Palantir MCP into your Continue extension with the configuration below.
Copied!
1 2 3 4 5 6 7 8 9 10 11 12 mcpServers: - name: Palantir command: npx args: - "-y" - "@palantir/mcp@latest" - "--foundry-api-url" - "https://<enrollment>.palantirfoundry.com" env: NPM_CONFIG_REGISTRY: "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/" NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken: "${FOUNDRY_TOKEN}" FOUNDRY_TOKEN: "<token>"

Cursor

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace the three instances of <enrollment>.palantirfoundry.com with your Palantir domain.
  3. Review the Cursor documentation ↗ to install Palantir MCP into your Cursor IDE with the configuration below.

For macOS:

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "mcpServers": { "Palantir": { "type": "stdio", "command": "npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken": "${FOUNDRY_TOKEN}", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/", "FOUNDRY_TOKEN": "<token>" } } } }

For Windows:

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "mcpServers": { "Palantir": { "type": "stdio", "command": "cmd /k npx", "args": [ "-y", "@palantir/mcp@latest", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken": "${FOUNDRY_TOKEN}", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/", "FOUNDRY_TOKEN": "<token>" } } } }

Github Copilot in VS Code

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace the three instances of <enrollment>.palantirfoundry.com with your Palantir domain.
  3. Review the VS Code documentation ↗ to install Palantir MCP into your VS Code IDE with the configuration below.
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 27 "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": { "NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken": "${FOUNDRY_TOKEN}", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/", "FOUNDRY_TOKEN": "${input:foundry-token}" } } } }

Windsurf

  1. Generate a user token from Palantir, then add this in place of <token> in the code below.
  2. Replace the three instances of <enrollment>.palantirfoundry.com with your Palantir domain.
  3. Review the Windsurf documentation ↗ to install Palantir MCP into your Windsurf IDE with the configuration below.
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": { "NPM_CONFIG_//<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/:_authToken": "${FOUNDRY_TOKEN}", "NPM_CONFIG_REGISTRY": "https://<enrollment>.palantirfoundry.com/artifacts/api/repositories/ri.artifacts.repository.discovered.foundry-mcp/contents/release/npm/", "FOUNDRY_TOKEN": "<token>" } } } }