Self-Host with Node.js
import { Steps } from ‘@astrojs/starlight/components’;
Self-Host with Node.js
Section titled “Self-Host with Node.js”Run the Xplorr MCP server locally or on your own server using Node.js.
Prerequisites
Section titled “Prerequisites”- Node.js 20+
- An Xplorr API token
-
Clone and install
Terminal window git clone https://github.com/Xplorrio/xplorr-mcp-server.gitcd xplorr-mcp-servernpm install -
Configure
Terminal window cp .env.example .envEdit
.envand set your API token:Terminal window XPLORR_API_TOKEN=xplorr_your_token_here -
Start the server
Terminal window npm start# Server running on http://localhost:3005Verify it’s healthy:
Terminal window curl http://localhost:3005/health# {"status":"ok","service":"xplorr-mcp","tools":21,"mode":"single-tenant"} -
Connect Claude Desktop
Edit
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows):{"mcpServers": {"xplorr": {"url": "http://localhost:3005/mcp"}}}Restart Claude Desktop.
Development mode
Section titled “Development mode”Run with auto-reload during development:
npm run devEnvironment variables
Section titled “Environment variables”See the Configuration reference →
Pointing at a self-hosted backend
Section titled “Pointing at a self-hosted backend”If you run the full Xplorr platform on-premises, override the API URL:
XPLORR_API_TOKEN=xplorr_your_token_hereXPLORR_API_URL=https://api.your-company.com