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 Agent Graph (MAG)
keta1930MCP Agent Graph (MAG) is an agent development framework for rapidly building agent systems. This project is based on graphs, nodes, and MCP to quickly construct complex Agent systems.
Evo AI - AI Agents Platform
evolutionapiEvo AI is an open-source platform for creating and managing AI agents, enabling integration with different AI models and services.
chatmcp
daodao97ChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
🌟 MCPM - Model Context Protocol Manager
pathintegral-instituteCLI MCP package manager & registry for all platforms and all clients. Search & configure MCP servers. Advanced Router & Profile features.
mcp-cli
wong2A CLI inspector for the Model Context Protocol
コメント