Minimal MCP server that exposes Claude chat via Anthropic API, with tools for listing models and sending chat prompts.
- Create a
.envfile with your API key:
ANTHROPIC_API_KEY=YOUR_KEY_HERE
- Install dependencies (already installed here):
npm install
npm start
The server communicates over stdio. Connect it with an MCP-compatible client.
list_models: Returns a curated list of Claude model IDsclaude_chat: Sends a prompt to Claude- params:
model?,system?,prompt,max_tokens?,temperature?
- params:
- Requires
ANTHROPIC_API_KEY. - Default model:
claude-3-7-sonnet-20250219.