laquesisa
MCP Serverlaquesisapublic

mcp pydantic ai

MCP example with Pydantic AI

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

MCP example with Pydantic AI

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

MCP project

Obsidian MCP server setup is from here: https://github.com/MarkusPfundstein/mcp-obsidian Weather MCP server setup is from Anthropic documentation.

Find more here: https://github.com/punkpeye/awesome-mcp-servers MCP documentation: https://modelcontextprotocol.io/introduction

  1. Setup
uv sync
# .env
LLM_MODEL_NAME_GEMINI=gemini-2.0-flash
LLM_API_KEY_GEMINI=xxx # needs google api key from https://aistudio.google.com

LOGFIRE_TOKEN=xxx # needs logfire token
OBSIDIAN_API_KEY=xxx # needs obsidian REST Api plugin and token
OBSIDIAN_HOST=127.0.0.1
  1. Start chat in console
uv run client_chat.py

Example user prompts:

What is the weather in New York?

What files do I have in my vault?
Create a file x.md with the content of the forecast in San Francisco. 

Check interactions in logfire: https://logfire-eu.pydantic.dev Check Google API usage here: https://aistudio.google.com

Use it with local running LLM

Use docker:

docker model pull ai/qwen3
docker desktop enable model-runner --tcp 12434

Add the following to your .env file:

LLM_BASE_URL_LOCAL=http://localhost:12434/engines/llama.cpp/v1
LLM_MODEL_NAME_LOCAL=ai/qwen3
LLM_API_KEY_LOCAL=na

Beware that local models are not as powerful and will end up likely in a worse behaviour than the bigger models.

Next steps

  • Langgraph or pydantic-ai-graph to orchestrate stuff
  • Agentic Framework to orchestrate between multiple Agents

Quick Start

1

Clone the repository

git clone https://github.com/laquesisa/mcp-pydantic-ai
2

Install dependencies

cd mcp-pydantic-ai
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerlaquesisa
Repomcp-pydantic-ai
LanguagePython
License-
Last fetched8/10/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