pydantic-mcp
Model Context Protocol tool calling support for Pydantic AI.
Just create an mcp.ClientSession and call tools = await mcptools(session)
to get a list of pydantic_ai.Tool instances for the supported tools.
Example:
Demo
You can run the demo against Groq llama-3.1-8b-instant:
$ export GROQ_API_KEY=xxx
$ uv run tests/demo.py "Read and summarize the file ./LICENSE"
Secure MCP Filesystem Server running on stdio
Allowed directories: [ '/users/aw/projects/rectalogic/pydantic-mcp' ]
The file ./LICENSE is a MIT License agreement. It states that the software is provided "as is" without warranty and that the authors and copyright holders are not liable for any claims, damages, or other liability arising from the software or its use.
Metadata
Release files for pydantic-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydantic_mcp-0.1.1.tar.gz | 58.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydantic_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.6 kB
Release files / pydantic_mcp-0.1.1.tar.gz
| Download URL | pydantic_mcp-0.1.1.tar.gz |
|---|---|
| Size | 58.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fd52f14bc2b6fdf10eeb52672b175bea5514ea31dfa736388c51b08d46a857c
|
|
BLAKE2b-256 checksum How to use checksums |
a63f873ff020c7aca0062e4af486bb123ee3ee40ee660041753a3b0941ddc85f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2025.
Transparency logRelease files / pydantic_mcp-0.1.1-py3-none-any.whl
| Download URL | pydantic_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b46331fab6fb2a8b56fc869a6f1a7920e6519936d0a2f5dece0dce597eb5bd9
|
|
BLAKE2b-256 checksum How to use checksums |
e0ac41f84a853cfdf10b78491679ee92e53aba3b996b016968a8e88447cbb9fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2025.
Transparency log