
MCP Server
eddiedunn
public
pydantic mcp agent
展示如何将 Pydantic AI 代理与 MCP 服务器集成的最小化项目。
Repository Info
0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License
About This Server
展示如何将 Pydantic AI 代理与 MCP 服务器集成的最小化项目。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# Pydantic MCP Agent Example
This project demonstrates a minimal setup for integrating Pydantic AI agents with MCP servers, following the pattern from ottomator-agents/pydantic-ai-mcp-agent.
## Setup
1. **Create a virtual environment with uv**
```bash
uv venv .venv
source .venv/bin/activate
uv pip install --upgrade pip
pip install pydantic-ai mcp
```
2. **Copy and configure files**
- `mcp_client.py`: MCP client logic (copied from the reference repo)
- `pydantic_mcp_agent.py`: Minimal agent script
- `mcp_config.json`: MCP server config (edit as needed)
3. **Set up API keys**
- If needed, create a `.env` file with your keys, following the `.env.example` pattern from the reference repo.
4. **Run your agent**
- See `pydantic_mcp_agent.py` for usage. You will need to provide your model and ensure your MCP config is correct.
## Reference
See the original [ottomator-agents/pydantic-ai-mcp-agent](../ottomator-agents/pydantic-ai-mcp-agent) for full details and advanced usage.
Quick Start
1
Clone the repository
git clone https://github.com/eddiedunn/pydantic-mcp-agent2
Install dependencies
cd pydantic-mcp-agent
npm install3
Follow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Ownereddiedunn
Repopydantic-mcp-agent
Language
Python
License-
Last fetched8/8/2025
Recommended MCP Servers
💬
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
integrationsdiscordchat
🔗
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
integrationsautomationsaas
🕷️
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
apifycrawlerdata
🌐
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
testingqabrowsers
⚡
Zapier MCP
A Zapier server that provides automation capabilities for various apps.
zapierautomation