Mcp_proxy_pydantic_agent
@p2c2e
关于 Mcp_proxy_pydantic_agent
Example for exposing MCP servers to Pydantic Agents
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Mcp_proxy_pydantic_agent?
Mcp_proxy_pydantic_agent is a sample integration that shows how to connect Model Context Protocol (MCP) servers with Pydantic.AI. It demonstrates using a weather server example and is intended for developers who want to mix MCP tools with PydanticAI agents.
How to use Mcp_proxy_pydantic_agent?
Clone the repo, run uv sync, change into mcp-client, then run either client.py (requires OpenAI and Anthropic API keys and uses Anthropic libraries directly) or client2.py (uses only PydanticAI and works with any function‑calling LLM). Export OPENAI_API_KEY and ANTHROPIC_API_KEY before running.
Key features of Mcp_proxy_pydantic_agent
- Integrates MCP servers with Pydantic.AI agents
- Uses two different LLMs (gpt‑4o and sonnet) for demonstration
- Pure PydanticAI option via client2.py (no Anthropic library dependency)
- Works with any function‑calling LLM in the pure Pydantic variant
Use cases of Mcp_proxy_pydantic_agent
- Ask for the time in New York when given a time in another city
- Ask for the current weather in a specified location
- General demonstration of combining MCP tools with PydanticAI
FAQ from Mcp_proxy_pydantic_agent
What dependencies are required?
—
Do I need both OpenAI and Anthropic API keys?
The proxy agent uses gpt‑4o and the tool uses sonnet. You must export both OPENAI_API_KEY and ANTHROPIC_API_KEY, unless you modify the code to use different models.
What is the difference between client.py and client2.py?
client.py uses Anthropic libraries directly. client2.py uses only PydanticAI and works with any function‑calling LLM.
What package manager is required?
The project uses the uv package manager (as configured in pyproject.toml).
Where does the weather server code come from?
The weather server code is adapted from the MCP quickstart resources repository.
AI 与智能体 分类下的更多 MCP 服务器
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
评论