langchain-protogrid
LangChain tools from the protogrid MCP registry: find MCP servers by what they do, check them against your rules, and give your agent the tools of the ones that pass.
pip install langchain-protogrid
from langchain.agents import create_agent
from langchain_protogrid import Rules, load_tools
tools = await load_tools(
"send an email",
rules=Rules(min_quality=70), # also refuses hidden text, tool poisoning, known vulnerabilities and paid servers
secrets={"api_key": os.environ["MAIL_API_KEY"]},
)
agent = create_agent(model="anthropic:claude-sonnet-5", tools=tools)
load_toolstries the best search results (or theserversyou name) in order. Each goes through protogrid's gate with your rules; one that passes is connected to directly, with no proxy, and its tools come back named<server key>_<tool>.- Secrets fill the
${NAME}placeholders of the server's connection in your process; they are never sent to protogrid. A server needing a secret you did not give is passed over. - Rules are yours, not the model's. The defaults refuse tools that hide text from people, tools holding instructions aimed at the model, servers with a known vulnerability in their dependencies, and servers that charge per call (x402), which an agent without a wallet cannot use (
Rules(paid=None)accepts them, from 0.1.2). Local packages are never loaded. pins={"io.github.owner/server": "<tools_hash>"}passes over a server whose checked tools changed since you reviewed them;strict_tools=Truealso compares the tools the server lists right now with the ones protogrid checked.ProtogridSearch()andProtogridGate(rules=...)let the agent look for servers and check one itself.
Python 3.11 or later. MCP support comes from langchain[mcp] (langchain.mcp, in beta upstream). Full guide: docs.protogrid.dev/sdk/langchain.
MIT licensed.
Metadata
Release files for langchain-protogrid 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_protogrid-0.1.2.tar.gz | 180.4 kB | With provenance | Details for langchain_protogrid-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_protogrid-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for langchain_protogrid-0.1.2-py3-none-any.whl |
Total release size: 190.7 kB
Release files / langchain_protogrid-0.1.2.tar.gz
| Download URL | langchain_protogrid-0.1.2.tar.gz |
|---|---|
| Size | 180.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bceb2ae8ba64bcbbfe29586d7d47a7e96e9fd1bd0b75b42b1473f9cd35e07ac6
|
|
BLAKE2b-256 checksum How to use checksums |
ace57cb745eaf2098adc6766cf73b8361b3f479fb6adf8a17d7e1927d934c909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / langchain_protogrid-0.1.2-py3-none-any.whl
| Download URL | langchain_protogrid-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21167e417c1ecbd0a03876de640cbc800d6aa119bbbb52e62a5a39259e71aec8
|
|
BLAKE2b-256 checksum How to use checksums |
67e3756c60551108571315e34a4d63b37fd929af3b78093fe5eea65139b9bfc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for langchain-protogrid 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langchain_protogrid-0.1.2.tar.gz
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 Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.