Skip to main content

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_tools tries the best search results (or the servers you 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=True also compares the tools the server lists right now with the ones protogrid checked.
  • ProtogridSearch() and ProtogridGate(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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-protogrid 0.1.4
File Size Uploaded Provenance Actions
langchain_protogrid-0.1.4.tar.gz 181.8 kB With provenance Details for langchain_protogrid-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-protogrid 0.1.4
File Interpreter ABI Platform Actions
langchain_protogrid-0.1.4-py3-none-any.whl Python 3 none any Details for langchain_protogrid-0.1.4-py3-none-any.whl

Total release size: 192.3 kB

Release files / langchain_protogrid-0.1.4.tar.gz

Download URL langchain_protogrid-0.1.4.tar.gz
Size 181.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef8f54564dcd7b27625ca3269571bb35eeae34a7fe8a96865491432b53ce114
BLAKE2b-256 checksum
How to use checksums
dbbc1c82f61fb25268bf086188caa5af99c7260bf25290bd7b573fd01e6d2bf7
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 Dec 1, 2026.

Transparency log

Release files / langchain_protogrid-0.1.4-py3-none-any.whl

Download URL langchain_protogrid-0.1.4-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
681c45fb8a34c520b8985fc6b73792144bd9a3b82739a031b1a49b18b1ef8a32
BLAKE2b-256 checksum
How to use checksums
0b8cf38fcc22c9442fc8d389ad7ce75958826e957cf4a5f010447d2964cf7729
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 Dec 1, 2026.

Transparency log

Security for langchain-protogrid 0.1.4

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.

Select from 2 files

Attestation for langchain_protogrid-0.1.4.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 Dec 1, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page