The Palantir model context protocol (MCP) enables external AI systems to read data and metadata from Foundry and interact via AI-friendly API endpoints using the configured user token permissions. Once data is accessed by an external system through Palantir MCP, the governance of its use shifts from Palantir to the external system. Data security will then depend on your relationship with that external system. Using the Palantir MCP does not imply that a Palantir AI model will be used; the AI model provider is determined by the external system you connect to, such as Microsoft for GitHub Copilot, or Cursor.
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.
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.

See instructions for:
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain. Do not prefix with "https://".Copied!1 2 3 4 5 6export FOUNDRY_HOST="<enrollment>.palantirfoundry.com" export FOUNDRY_TOKEN=<token> claude mcp add palantir-mcp \ --scope user \ -e FOUNDRY_TOKEN=$FOUNDRY_TOKEN \ -- npx "-y" "palantir-mcp" "--foundry-api-url" "https://$FOUNDRY_HOST"
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain.Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17{ "mcpServers": { "palantir-mcp": { "command": "npx", "args": [ "-y", "palantir-mcp", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>" }, "disabled": false } } }
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain.Copied!1 2 3 4 5 6 7 8 9 10mcpServers: - name: palantir-mcp command: npx args: - "-y" - "palantir-mcp" - "--foundry-api-url" - "https://<enrollment>.palantirfoundry.com" env: FOUNDRY_TOKEN: "<token>"
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain.For macOS:
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17{ "mcpServers": { "palantir-mcp": { "type": "stdio", "command": "npx", "args": [ "-y", "palantir-mcp", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>" } } } }
For Windows:
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17{ "mcpServers": { "palantir-mcp": { "type": "stdio", "command": "cmd /k npx", "args": [ "-y", "palantir-mcp", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>" } } } }
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain.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"mcp": { "inputs": [ { "type": "promptString", "id": "foundry-token", "description": "Foundry user token", "password": true } ], "servers": { "palantir-mcp": { "type": "stdio", "command": "npx", "args": [ "-y", "palantir-mcp", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "${input:foundry-token}" } } } }
<token> in the code below.<enrollment>.palantirfoundry.com with your Palantir domain.Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16{ "mcpServers": { "palantir-mcp": { "command": "npx", "args": [ "-y", "palantir-mcp", "--foundry-api-url", "https://<enrollment>.palantirfoundry.com" ], "env": { "FOUNDRY_TOKEN": "<token>" } } } }