The Polarity AI Features that power the built-in chat and LLM-optimized reducers for the MCP are configured in the Admin panel under Server Configuration.
You must be a Polarity administrator to access these settings.
Client Prerequisites
Node.js 18 or later and
npxmust be available.On macOS:
brew install npm
The connector package
@polarityio/mcp-connector) is fetched and run automatically vianpxon each connection — no manual install requiredNetwork access to the Polarity server URL from this machine
If the Polarity server presents a certificate not trusted by the system store (self-signed or internal CA), set
NODE_EXTRA_CA_CERTSto the path of the CA file (e.g.,/path/to/ca.crtor./ca.pem)Run
/mcp reconnectin Claude Code, or restart Claude Code, after any config change
Server Prerequisites
Polarity server v5.7 or later, running and reachable at the configured URL
A valid (non-expired) Polarity API key generated under Settings → API Keys
The API key's user account must have access to the integrations you want to query — assign integrations via Actions → View Details in the API Keys UI
Each integration must be configured with valid upstream credentials, network reachability from the Polarity server, and status "running"
Add
HERMES_MCP_SERVER=trueto the Polarity.envfileAdd the following block to
/app/caddy/config/Caddyfile:
handle_path /mcp/* {
rewrite * /mcp{uri}
reverse_proxy {
to {$POLARITY_PLATFORM_API_HOSTNAME}
header_up Host {$POLARITY_HOSTNAME}
transport http {
tls
tls_insecure_skip_verify
}
}
}RESTART Polarity
Claude Set Up
Add the following to the mcpServers block in your ~/.claude.json:
"mcpServers": {
"polarity": {
"command": "npx",
"args": ["-y", "@polarityio/mcp-connector"],
"env": {
"POLARITY_SERVER_URL": "https://<your-polarity-server>",
"POLARITY_TOKEN": "<your-polarity-api-key>",
"NODE_EXTRA_CA_CERTS": "</path/to/ca.crt>"
}
}
}Three things that differ from other MCP server configs:
No headers key
No
/mcpsuffix on the URL — use the base server URL onlyPOLARITY_TOKENis the raw JWT — no Bearer prefix
NODE_EXTRA_CA_CERTS is only required if the Polarity server uses a self-signed or internal CA certificate.
RESTART Claude
Verify the Connection
Run these commands to confirm the server is connected and the tools are registered:
claude mcp listclaude mcp get polarityThen ask Claude to run list_available_integrations — it should return your Polarity integrations.