MCP.so
登录

Open Source MCP CLient Library

@bittush8789

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

bittush8789

关于 Open Source MCP CLient Library

暂无概览

Open Source MCP CLient Library 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

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

常见问题

1

What LLMs are supported?

Any LangChain-supported LLM that has tool calling capabilities, such as OpenAI, Anthropic, Groq, and Llama models.

2

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.

3

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`).

4

Can I restrict which tools the agent can use?

Yes, pass `disallowed_tools` to `MCPAgent` to block categories like `file_system` or `network`.

5

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 服务器