Installation

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 .npmrc to use an auth token to connect to Palantir

  1. Generate a user token from Palantir. Review the guide on how to generate a user token.

  2. Set that user token as a persistent environment variable named FOUNDRY_TOKEN.

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

3. Configure your IDE to use Palantir MCP

Cline

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 } } }

Continue

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

Cursor

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/" } } } }

Github Copilot in VS Code

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/" } } } }

Claude Code

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.

  1. Navigate to your project's repo in the command line.
  2. In the command below, update <enrollment> and<token> with your enrollment and user token.
  3. Run the following command:
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"

Windsurf

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/" } } } }