Skip to main content

protogrid (Python)

Client for the protogrid registry: find MCP servers by intent, get a machine-readable connection block, and connect with no human in the loop wherever the server allows it.

import os
from protogrid import ProtogridClient, find_connectable, open_session

registry = ProtogridClient()  # public registry; ProtogridClient("http://localhost:8080") for a local stack
found = find_connectable(registry, "send an email", secrets=os.environ)
async with open_session(found.connection, os.environ) as session:   # mcp.ClientSession, initialized
    tools = await session.list_tools()
  • ProtogridClient / AsyncProtogridClient: search (filters by connection class, trust, quality, quality flags such as known-vulns, and a verified owner), get_server, list_tools, list_all_tools, get_connection, get_quality, get_changes, get_dependencies, gate (pass or fail for one server against your rules, e.g. gate(name, min_quality=75, no_fail=["tools.hidden_text"], exclude_quality_flags=["known-vulns", "hidden-text"])), and check / get_check for an on-demand check of any remote MCP server URL (quality and Claude and OpenAI directory readiness; fresh=True with a key skips the five-minute reuse).
  • No key needed. A free key from https://protogrid.dev/account raises the limits (60 requests per minute, 5,000 per day); the client reads PROTOGRID_API_KEY, or pass ProtogridClient(api_key=...).
  • Connection blocks carry ${NAME} placeholders; substitute_secrets fills them from your own store. The registry never sees secret values.
  • connection_class: R0 remote, no auth · R1 remote, static secret you hold · R2 remote OAuth (one consent) · L0 local package (allow_local=True) · unknown.
  • R2: open_session(conn, oauth=OAuthOptions(store, consent)) runs the one-time consent (loopback_consent or manual_consent, which hand back the redirect's code, state and issuer) through the official SDK's OAuth provider and keeps tokens in your TokenStore; later runs need no human.
  • PydanticAI: to_pydantic_ai(conn, secrets) returns an MCPToolset. to_fastmcp_transport and to_mcp_servers are pure formatters.
  • Install: pip install protogrid-sdk (imported as protogrid). Extras: protogrid-sdk[mcp] for open_session, protogrid-sdk[pydantic-ai] for the toolset.

Examples: examples/find_and_call.py (search → connect → call a tool) and examples/pydantic_ai_agent.py (agent with a registry-found toolset, no LLM key needed).

Metadata

Release files for protogrid-sdk 0.4.5

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

Source distribution (sdist)

Source distribution for protogrid-sdk 0.4.5
File Size Uploaded Provenance Actions
protogrid_sdk-0.4.5.tar.gz 235.0 kB With provenance Details for protogrid_sdk-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for protogrid-sdk 0.4.5
File Interpreter ABI Platform Actions
protogrid_sdk-0.4.5-py3-none-any.whl Python 3 none any Details for protogrid_sdk-0.4.5-py3-none-any.whl

Total release size: 253.6 kB

Release files / protogrid_sdk-0.4.5.tar.gz

Download URL protogrid_sdk-0.4.5.tar.gz
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42eabd1040b513e3a6b8fa05a360167ad0915e355a4b62c76e7a6eca4bf193c6
BLAKE2b-256 checksum
How to use checksums
980f58fe60b4c6b3f7eea8b93eccf8b10506e4dd8c446d1f8b72c14770bc7a40
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 23, 2026.

Transparency log

Release files / protogrid_sdk-0.4.5-py3-none-any.whl

Download URL protogrid_sdk-0.4.5-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b17e51485d2cf7126cc225d36acf139366499c07ff00253eb42785aa0fede652
BLAKE2b-256 checksum
How to use checksums
791e977d92a6074b6ceabe55708eb350c03d7630ab1cfc2f20caa1f7f4ea9cab
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 23, 2026.

Transparency log

Security for protogrid-sdk 0.4.5

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 protogrid_sdk-0.4.5.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 23, 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