Model Context Protocol tool calling support for Pydantic AI
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_mcp-0.1.1.tar.gz.
File metadata
- Download URL: pydantic_mcp-0.1.1.tar.gz
- Upload date:
- Size: 58.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd52f14bc2b6fdf10eeb52672b175bea5514ea31dfa736388c51b08d46a857c
|
|
| MD5 |
d91c3b8c131080d42a8f458c5a0058c8
|
|
| BLAKE2b-256 |
a63f873ff020c7aca0062e4af486bb123ee3ee40ee660041753a3b0941ddc85f
|
Provenance
The following attestation bundles were made for pydantic_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on rectalogic/pydantic-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydantic_mcp-0.1.1.tar.gz -
Subject digest:
1fd52f14bc2b6fdf10eeb52672b175bea5514ea31dfa736388c51b08d46a857c - Sigstore transparency entry: 178689630
- Sigstore integration time:
-
Permalink:
rectalogic/pydantic-mcp@09a101b130f96a15c4e414f2cc0f15f2be9f87c4 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/rectalogic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09a101b130f96a15c4e414f2cc0f15f2be9f87c4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pydantic_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pydantic_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b46331fab6fb2a8b56fc869a6f1a7920e6519936d0a2f5dece0dce597eb5bd9
|
|
| MD5 |
5c500cd03a5afaec5095eb8931981f09
|
|
| BLAKE2b-256 |
e0ac41f84a853cfdf10b78491679ee92e53aba3b996b016968a8e88447cbb9fd
|
Provenance
The following attestation bundles were made for pydantic_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on rectalogic/pydantic-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydantic_mcp-0.1.1-py3-none-any.whl -
Subject digest:
8b46331fab6fb2a8b56fc869a6f1a7920e6519936d0a2f5dece0dce597eb5bd9 - Sigstore transparency entry: 178689632
- Sigstore integration time:
-
Permalink:
rectalogic/pydantic-mcp@09a101b130f96a15c4e414f2cc0f15f2be9f87c4 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/rectalogic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09a101b130f96a15c4e414f2cc0f15f2be9f87c4 -
Trigger Event:
push
-
Statement type: