MCP Client
@edanyal
关于 MCP Client
Typescript mcp client library.
概览
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.
智能体框架 分类下的更多 MCP 客户端

CreceRank | Mejor herramienta GEO en Español
CreceRank | Mejor herramienta GEO en EspañolCreceRank es la mejor herramienta GEO en Español. Puedes usar su MCP con esta url: https://crecerank.onrender.com/mcp
MCP REST API and CLI Client
rakesh-eltropyNovu - Connect your AI agents & products to customers
NovuNovu is the open-source communication layer for AI agents. An agent built on Novu connects to MCP servers like Linear, GitHub, and Notion for its tools, then talks with your users on Slack, Microsoft Teams, WhatsApp, Tel
Tester Client for Model Context Protocol (MCP)
apifyModel Context Protocol (MCP) Client for Apify's Actors
Smolagents
huggingface🤗 smolagents: a barebones library for agents that think in code.
评论