Skip to content

Connect a client

Every client needs the same endpoint, https://api.milgram.dev/v1/mcp, and signs you in through the browser the first time it connects.

Make Milgram available across your projects:

Terminal window
claude mcp add --transport http --scope user milgram https://api.milgram.dev/v1/mcp

Start Claude Code, run /mcp, select milgram, choose Authenticate and complete the browser sign-in. /mcp then shows the connection, and the server’s menu offers to reconnect.

OpenRouter supplies the models; the MCP server is configured in the client that runs them. If you use opencode with OpenRouter, for example, add the server from the opencode tab: the Milgram sign-in is separate from your OpenRouter key.

To check that the endpoint is reachable and advertises OAuth:

Terminal window
curl --include https://api.milgram.dev/v1/mcp

An unauthenticated request answers 401 Unauthorized with a WWW-Authenticate header that points to the OAuth metadata. A custom client must complete OAuth with PKCE, then speak MCP over Streamable HTTP: an API key does not replace the sign-in.