whillhill/mcpstore
开盒即用的优雅管理mcp服务 | 结合Agent框架 | 作者听劝 | 已发布pypi | Vue页面demo
Platform-specific configuration:
{
"mcpServers": {
"mcpstore": {
"command": "npx",
"args": [
"-y",
"mcpstore"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<div align="center">
<table align="center"> <tr> <td> <pre> ███ ███ ██████ ███████ ██████ ████████ ██████ ██████ ███████ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ███████ ██████ ██ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██████ ██ ██████ ██ ██ ███████ </pre> </td> </tr> </table>
---
</div>
开发者最佳的mcp管理包 快速维护mcp服务并应用
pip install mcpstore一切的开始:初始化一个store
from mcpstore import MCPStore
store = MCPStore.setup_store()现在你获得了一个 store,利用store去使用你的MCP服务,store 会维护和管理这些 MCP 服务。
#在上面的代码下面加入
store.for_store().add_service({"mcpServers": {"mcpstore_wiki": {"url": "https://www.mcpstore.wiki/mcp"}}})
store.for_store().wait_service("mcpstore_wiki")add_service方法支持多种mcp服务配置格式,。wait_service用来等待服务就绪。
#在上面的代码下面加入
tools = store.for_store().for_langchain().list_tools()
print("loaded langchain tools:", len(tools))轻松将mcp服务转为langchain可以直接使用的tools列表
积极支持更多的框架
| 已支持框架 | 获取工具 | | --- | --- | | LangChain | tools = store.for_store().for_langchain().list_tools() | | LangGraph | tools = store.for_store().for_langgraph().list_tools() | | AutoGen | tools = store.for_store().for_autogen().list_tools() | | CrewAI | tools = store.for_store().for_crewai().list_tools() | | LlamaIndex | `tools = store.for_store().for_llamaindex().list_too
Loading reviews...