# MCP server

Every instrument in the Inspector is also an MCP server, so an AI agent such as Claude Code can study a model on your machine the way you do, with a per-launch token and switches you control.

Canonical: https://parameterspaceinspector.com/instruments/mcp-server/  
Updated: 2026-10-16  
Part of the Parameter Space Inspector (free, open-source desktop app) · section: https://parameterspaceinspector.com/instruments/ · Site guide for AI: https://parameterspaceinspector.com/llms.txt

**The question it answers:** can an agent use these instruments?

Yes. The browser server that serves the Inspector's UI also serves a Model Context Protocol endpoint at `http://127.0.0.1:4310/mcp`. Every instrument is a tool there, so an agent can load a model, run Read on a text, score the understanding tests, place a model on the Timeline, or ask for the Self-portrait, and reason about the results.

```
claude mcp add --transport http psi http://127.0.0.1:4310/mcp --header "Authorization: Bearer <token>"
```

The token is printed when `node src/devserver.js` starts, new at each launch; set `PSI_MCP_TOKEN` to keep one.

## What an agent cannot do

Agents cannot change keys, the spending cap or the engine. Two switches in Settings are off until you turn them on: changing a model (cuts, concept erase, grow) and spending OpenRouter credit. The server answers only on this computer and only for the host names `127.0.0.1` and `localhost`, so other pages in your browser cannot drive it.

## What it needs

The same engines as the views the agent calls. The server itself is Node.js.

## Questions people ask

### Which agents work?

Any MCP client over HTTP: Claude Code, Codex, Gemini CLI, Cursor and others. The repository's AGENTS.md tells an assistant how to install and use the Inspector.

### Can an agent reach it from another machine?

Only through a proxy that authenticates you first, with that host added to `PSI_ALLOWED_HOSTS`; the server then requires Cloudflare Access's identity header. Never expose the port directly.

### Does the site's Prometheus use this?

No. The site's chat has its own MCP server for the essays. The in-app guide and the local MCP server are how agents reach your model.

---

From [The Emergence Machine](https://emergencemachine.com/). Newsletter: [subscribe on Substack](https://theemergencemachine.substack.com/subscribe). Use-case feed: https://parameterspaceinspector.com/feed.xml. Follow: [Substack](https://theemergencemachine.substack.com) · [YouTube](https://www.youtube.com/@emergencemachine) · [X](https://x.com/emergences4me) · [Bluesky](https://bsky.app/profile/emergencemachine.bsky.social) · [Reddit](https://www.reddit.com/r/emergencemachine/) · [Instagram](https://www.instagram.com/emergencemachine/) · [TikTok](https://www.tiktok.com/@emergencemachine) · [Kaggle](https://www.kaggle.com/emergencemachine/datasets).
