Skip to content
Phylax
Integration guides

Local Phylax MCP

Run the Phylax MCP server on your own machine, so an assistant can ask for verdicts while it works.

The local server runs as a child process of your editor or desktop client and talks to it over stdio. Nothing listens on a port, so no other process on the machine can reach it.

Why stdio and not a local HTTP port

The MCP specification recommends stdio for local servers precisely because it limits access to the one client that spawned the process. A server on localhost is reachable by every other process on your machine, and by any web page that can be made to resolve a hostname to 127.0.0.1. If you must use HTTP locally, require an authorization token or a Unix domain socket.

Install

Terminal window
npm install -g @phyi/cli
phylax --version

Add it to your client

The command is always the same. Only the file you put it in changes.

claude_desktop_config.json
{
"mcpServers": {
"phylax": {
"command": "phylax",
"args": ["mcp", "serve"],
"env": {
"PHYLAX_API_TOKEN": "${PHYLAX_API_TOKEN}"
}
}
}
}
PlatformLocation
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

Restart the client after editing. Configuration is read at launch.

What the server exposes

Once connected, the assistant can call these without leaving the conversation.

ToolPurpose
verify_packageReturn a verdict for one package reference.
verify_mcp_serverReturn a verdict for another MCP server before you enable it.
get_attestationFetch the signed attestation behind a verdict.
check_policyEvaluate an artifact against your organization’s policy.

Confirm it is running

Ask the assistant to verify something with a known answer:

Use Phylax to verify pkg:npm/express@4.18.2 and tell me the verdict.

If the tool never gets called, the client did not start the server. Run the command yourself to see the error the client swallowed:

Terminal window
phylax mcp serve

Local or remote

Use local when the token stays on one machine and you want no network hop. Use Remote Phylax MCP when a team shares one configuration, or when the client cannot spawn processes.

See MCP Servers for what Phylax checks and the threat model behind it.

Did this page help you?