Open Source MCP CLient Library
@bittush8789
关于 Open Source MCP CLient Library
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Open Source MCP CLient Library?
Open Source MCP CLient Library (mcp-use) is an open source Python library that connects any LangChain-supported LLM to MCP tools, enabling developers to build custom agents with tool access without using closed source or application clients.
How to use Open Source MCP CLient Library?
Install via pip install mcp-use and optionally a LangChain provider package (e.g., langchain-openai). Configure an MCP server using a dictionary or JSON file, create an MCPClient and a LangChain LLM that supports tool calling, then create an MCPAgent and invoke await agent.run() with a query.
Key features of Open Source MCP CLient Library
- Ease of use: create a first MCP agent with only 6 lines of code
- LLM flexibility: works with any LangChain LLM supporting tool calling (OpenAI, Anthropic, Groq, etc.)
- HTTP support: direct connection to MCP servers running on HTTP ports
- Multi-server support: use multiple MCP servers simultaneously in a single agent
- Tool restrictions: restrict potentially dangerous tools like file system or network access
Use cases of Open Source MCP CLient Library
- Web browsing with Playwright to search and scrape the web
- Searching Airbnb for accommodations using an MCP server
- Creating 3D models in Blender via the Blender MCP server
- Combining tools from multiple MCP servers (e.g., browsing + file operations)
- Connecting to web-based MCP servers over HTTP for remote tool access
FAQ from Open Source MCP CLient Library
What LLMs are supported?
Any LangChain-supported LLM that has tool calling capabilities, such as OpenAI, Anthropic, Groq, and Llama models.
How do I install the library?
Run pip install mcp-use and install the appropriate LangChain provider package (e.g., langchain-openai) for your chosen LLM.
How do I connect to MCP servers?
You can connect via stdio by specifying a command and arguments in the config, or via HTTP by providing a URL (e.g., http://localhost:8931/sse).
Can I restrict which tools the agent can use?
Yes, pass disallowed_tools to MCPAgent to block categories like file_system or network.
Can I use multiple MCP servers at the same time?
Yes, define multiple servers under mcpServers in your configuration and pass it to MCPClient.from_dict() or from_config_file().
开发工具 分类下的更多 MCP 服务器
test
prysmaticlabsGo implementation of Ethereum proof of stake
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Golf
golf-mcpProduction-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
评论