MCP Client
@edanyal
About MCP Client
Typescript mcp client library.
Overview
What is MCP Client?
MCP Client is a TypeScript implementation of a Model Context Protocol (MCP) client for LLM agents. It provides a type-safe, promise-based API to connect to MCP servers, manage their lifecycle, and interact with tools, resources, and prompts.
How to use MCP Client?
Install via npm install mcp-client. Create a mcp-config.json file to define MCP servers (e.g., memory, filesystem, bravesearch) using npx or other commands. Use the MCPConnectionManager to load the configuration, obtain MCPClient instances, and call tools or resources. The client integrates seamlessly with Claude’s native tool calling by passing tool definitions from listTools() to Anthropic’s API.
Key features of MCP Client
- Full implementation of the MCP specification
- Support for stdio and HTTP+SSE transports
- Built-in MCP server process management
- Integration with Claude's native tool calling
- Type-safe, event-based, promise-based API
- Supports all MCP operations: Resources, Tools, Prompts, Sampling
Use cases of MCP Client
- Build an LLM agent that uses a knowledge graph via the Memory server
- Enable file system operations for an AI assistant
- Add web search capabilities using the Brave Search server
- Automate browser tasks through the Puppeteer MCP server
FAQ from MCP Client
What is MCP Client and how does it work?
MCP Client is a TypeScript library that implements the Model Context Protocol, allowing LLM agents to connect to MCP servers and use their tools, resources, and prompts. It manages server processes and provides a simple API to list and call these capabilities.
What transports does MCP Client support?
MCP Client supports both stdio (command-line processes) and HTTP+SSE (Server-Sent Events) transports for communicating with MCP servers.
How do I integrate MCP Client with Claude?
Use listTools() to get tool definitions, then pass them to Anthropic’s Claude API as tool parameters. When Claude returns a tool call, use callTool() to execute it and send the result back to Claude.
What is the license for MCP Client?
MCP Client is licensed under the MIT License.
Basic information
More Agent Frameworks MCP clients
MCP CLI client
adhikaspA simple CLI to run LLM prompt and implement MCP client.
MCPHost 🤖
mark3labsA CLI host application that enables Large Language Models (LLMs) to interact with external tools through the Model Context Protocol (MCP).
Saiki
truffle-aiA customizable, general purpose AI Agent that supports MCP. Talk to Saiki in natural language to control computers, applications and more!
chatmcp
daodao97ChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
MCP Client Chatbot
cgoinglove🚀 Open source MCP Client: A Multi-provider AI Chatbot Solution
Comments