MCP服务器工具

2025 MCP服务器是一个基于Python的工具,用于创建和管理MCP服务器项目,支持本地测试和AI代理开发。

  • by kaunjovi
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 kaunjovi/2025-mcp-server

使用说明

2025 mcp服务器

2025 MCP服务器使用python。

  1. 使用uv启动项目
uv init
Initialized project `2025-mcp-server`

uv venv 
Using CPython 3.11.9 interpreter at: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate


  1. 检查它是否使用.vev位置
where python
/Users/kaunjovi/code/2025-mcp-server/.venv/bin/python
  1. 运行默认python
python main.py
Hello from 2025-mcp-server!

uv添加langchain groq langchain mcp适配器mcp

欢迎使用FastMCP 2.0!

  1. https://gofastmcp.com/getting-started/welcome

如何连接到MCP服务器工具?

  1. mcp.run(传输=“stdio”)
  2. 使用标准输入和输出(stdin-stdout)io。
  3. 在命令提示符下运行服务器。
  4. 非常适合本地测试。

语言图形训练

  1. https://academy.langchain.com/courses/take/intro-to-langgraph/lessons/58238107-course-overview

使用LangGraph和Ollama免费构建更智能的AI代理