You need an Alchemist account first. OAuth signs you in as an existing Alchemist user. If you’ve never signed in at app.askalchemist.com, do that once before connecting. Otherwise the server returns
401 even after a successful sign-in.Claude Code
1. Add the server
WWW-Authenticate, so Claude Code discovers it and registers itself automatically.
2. Sign in
Inside Claude Code:connected.
You can also do this from your shell without opening a session:
--no-browser when you’re on a remote box with no display. It prints the URL and prompts you to paste the redirect back.
Share it with your team
Use--scope project to write the server into a .mcp.json that you check into version control. Each teammate still signs in individually with their own Alchemist account:
.mcp.json
API key instead of OAuth
OAuth needs an interactive browser step, so it can’t run in CI or in a non-interactiveclaude -p job. For those, pass an API key as a header instead:
.mcp.json, reference the key through an environment variable rather than hardcoding it. Claude Code expands ${VAR} inside headers:
.mcp.json
Claude.ai
Remote MCP servers are added as custom connectors, not in a config file.- Go to claude.ai/customize/connectors (Team and Enterprise: Admin settings → Connectors, owners only).
- Click Add custom connector.
- Enter the URL:
https://api.askalchemist.com/mcp/ - Click Add, then Connect and sign in with your Alchemist account.
Connectors you add on claude.ai also appear in Claude Code automatically, but only when Claude Code is authenticated with that same claude.ai subscription login. They are not loaded when
ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, apiKeyHelper, or a provider like Bedrock or Vertex is the active auth method. Run /status to check which one is active.API key instead of OAuth
If you’d rather use a shared API key than have each person sign in, open Request headers in the Add custom connector dialog and add:
Include the literal
Bearer prefix. Claude sends the value exactly as entered and adds no scheme of its own.
Claude Desktop
Claude Desktop uses the same connector system as Claude.ai: Settings → Connectors → Add custom connector, then the URLhttps://api.askalchemist.com/mcp/. Follow the Claude.ai steps above.
claude mcp add-from-claude-desktop imports servers from that config file into Claude Code (macOS and WSL only). Since Alchemist is a connector rather than a config-file entry, it isn’t part of that import. Use the claude mcp add command above.
Add the Alchemist skill
Copy and Paste in Claude Code
Once the MCP server is connected, paste this into Claude Code to create a research skill that drives it well.
Claude API (function calling)
If you’re calling the Claude API directly, definesearch_insights as a tool and handle the tool-use loop yourself. This path uses the REST API and its X-API-Key header, not MCP: