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 and known vulnerabilities
    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, and servers with a known vulnerability in their dependencies. 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.0

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.0
File Size Uploaded Provenance Actions
langchain_protogrid-0.1.0.tar.gz 180.2 kB Without provenance Details for langchain_protogrid-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 190.3 kB

Release files / langchain_protogrid-0.1.0.tar.gz

Download URL langchain_protogrid-0.1.0.tar.gz
Size 180.2 kB
Tags Source
SHA-256 checksum
How to use checksums
315ff81417cab49444caad8c222fa22b727e3286f00c31c4530ad91578ae8af2
BLAKE2b-256 checksum
How to use checksums
967c8dbb17b1c95636a442faba93ae38e0cacc21a03185b44894e5e993524bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL langchain_protogrid-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78e8cacbe64cde3714710ad4cef19e2d50a7043f167eee728ea181a2059efc3a
BLAKE2b-256 checksum
How to use checksums
0da13ae692566979b5c49f81f25d5c37b2d4b6015c69d7963d5ee972d5cae91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for langchain-protogrid 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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