Palantir Mcp
FreeNot checkedA lightweight open-source MCP wrapper for downloading and installing the @palantir/mcp package from secure Foundry environments.
About
A lightweight open-source MCP wrapper for downloading and installing the @palantir/mcp package from secure Foundry environments.
README
Palantir MCP
A lightweight open-source wrapper for downloading and installing the @palantir/mcp package from secure Foundry environments.
Overview
This tool provides a streamlined way to access and run Palantir's Model Context Protocol (MCP) server from within Foundry environments. It handles authentication, package retrieval, and environment setup automatically.
How It Works
- Preflight Checks: Validates Node.js version, network connectivity to Foundry, and token authentication
- Registry Setup: Configures NPM to use Foundry's internal package registry
- Package Execution: Downloads and runs the latest @palantir/mcp package from your secure Foundry environment with your provided arguments
🛠️ Installation
Requirements
- Node.js 18 or higher
- Valid Foundry instance access
- Foundry user token with appropriate permissions
MCP Inspector
Test the palantir-mcp using the mcp-inspector package.
# Replace the below with your Foundry URL
export FOUNDRY_HOST="<enrollment>.palantirfoundry.com"
# Replace the below with your Foundry Token
export FOUNDRY_TOKEN=<token>
npx @modelcontextprotocol/inspector \
npx -y palantir-mcp \
--foundry-api-url \
https://$FOUNDRY_HOST
Claude Code
# Replace the below with your Foundry URL
export FOUNDRY_HOST="<enrollment>.palantirfoundry.com"
# Replace the below with your Foundry Token
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"
Cursor
{
"mcpServers": {
"palantir-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"palantir-mcp",
"--foundry-api-url",
"https://<enrollment>.palantirfoundry.com" // Replace with your Foundry URL
],
"env": {
"FOUNDRY_TOKEN": "<token>" // Replace with your Foundry Token
}
}
}
}
VS Code Copilot
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "foundry-token",
"description": "Foundry user token",
"password": true
}
],
"servers": {
"Palantir": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"palantir-mcp",
"--foundry-api-url",
"https://<enrollment>.palantirfoundry.com" // Replace with your Foundry URL
],
"env": {
"FOUNDRY_TOKEN": "${input:foundry-token}"
}
}
}
}
Cline
{
"mcpServers": {
"palantir-mcp": {
"command": "npx",
"args": [
"-y",
"palantir-mcp",
"--foundry-api-url",
"https://<enrollment>.palantirfoundry.com" // Replace with your Foundry URL
],
"env": {
"FOUNDRY_TOKEN": "<token>" // Replace with your Foundry Token
},
"disabled": false
}
}
}
Development
# Install dependencies
npm install
# Run in development mode
npm run dev -- --foundry-api-url https://<enrollment>.palantirfoundry.com --foundry-token <token>
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Build for production
npm run build
# Lint and format
npm run lint
npm run format
Architecture
The tool is organized into focused modules:
cli.ts- Command-line argument parsing and validationspawn.ts- Process spawning and signal handlingregistry.ts- NPM registry URL constructionerrors.ts- Custom error classes for better error handlingpreflightChecks.ts- Validation of environment and credentialsindex.ts- Main orchestration logic
Error Handling
The tool provides detailed error messages for common issues:
- Node Version Error: When Node.js version is below 18
- Network Error: When unable to reach Foundry API
- Authentication Error: When token is invalid or expired
- Package Fetch Error: When unable to retrieve the MCP package
Contributing
Contributions are welcome! Please ensure:
- All tests pass (
npm test) - Code is properly linted (
npm run lint) - Code is formatted (
npm run format) - Type checking passes (
npm run typecheck)
License
MIT - See LICENSE file for details
Support
For issues related to:
- This wrapper tool: Please open an issue in this repository
- The underlying @palantir/mcp package: Contact Foundry support
- Foundry access or tokens: Contact your Foundry administrator
Install Palantir Mcp in Claude Desktop, Claude Code & Cursor
unyly install palantir-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add palantir-mcp -- npx -y palantir-mcpFAQ
Is Palantir Mcp MCP free?
Yes, Palantir Mcp MCP is free — one-click install via Unyly at no cost.
Does Palantir Mcp need an API key?
No, Palantir Mcp runs without API keys or environment variables.
Is Palantir Mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Palantir Mcp in Claude Desktop, Claude Code or Cursor?
Open Palantir Mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Palantir Mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
