A TypeScript client for Model Context Protocol (MCP) that integrates with Claude.
- Install dependencies:
npm install- Set up your environment:
- Copy
.env.exampleto.env - Add your Anthropic API key to
.env:
- Copy
ANTHROPIC_API_KEY=your_api_key_here
- Build the project:
npm run buildRun the client by providing a path to your MCP server script:
node build/index.js <path_to_server_script>For example:
node build/index.js ./server/mcp_server.jsThe client will:
- Connect to the specified MCP server
- Start an interactive chat session
- Process queries using Claude and available MCP tools
- Type 'quit' to exit the session
ANTHROPIC_API_KEY: Your Anthropic API key (required)
npm run build
node build/index.js path/to/server.py # python server node build/index.js path/to/build/index.js # node server