Mcp_proxy_pydantic_agent
@p2c2e
About Mcp_proxy_pydantic_agent
Example for exposing MCP servers to Pydantic Agents
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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.
Frequently asked questions
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.
Basic information
More AI & Agents MCP servers

Lumify Sports Intelligence
LumifyAgent-ready sports intelligence API: live scores, odds, line movement, public betting splits, and explainable bet confidence — via 16 MCP tools at https://lumify.ai/mcp. Get a free key instantly — no signup, email, or ca

scvd.store
seancrecordThe trust layer of the x402 economy. Free conformance checking for any issuer's x402 signed offers and receipts. Settlement attestation on Base and Solana. Weekly signed, Bitcoin-anchored ecosystem corpus.

Simplepages
SimplepagesBuild and edit landing pages and websites from your AI assistant, and pull how they are performing.

Plainpaper
PlainpaperThe AI marketing canvas for Claude and MCP agents. Your agent drafts campaigns as cards on a shared board, briefed by your brand rules, approved by you.
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Comments