Skip to main content

The Standard Library for the Agentic Web — verified MCP tools for any AI Agent.

Project description

ProtocolBox 📦

License: MIT Python 3.11+ Ruff MCP

The Standard Library for the Agentic Web.
https://protocolbox.in

ProtocolBox is a collection of high-reliability MCP (Model Context Protocol) tools designed for AI Agents. It provides verified, token-efficient utilities that work out-of-the-box with Claude, Gemini, and other MCP-compliant agents.

🚀 Installation

pip install protocolbox

Initialize the configuration for your agent:

protocolbox init

🛠️ Tools

ProtocolBox currently exports 3 core tools optimized for agent workflows:

Tool Signature Description
Scrape scrape(url: str) -> str Fetches a webpage and converts it to clean, token-saving Markdown. Removes ads, scripts, and clutter automatically.
Heal JSON heal_json(json_str: str) -> dict repairs malformed JSON strings often produced by LLMs (trailing commas, missing quotes, etc.) into valid Python dictionaries.
Invoice generate_invoice(data: dict) -> str Generates a professional PDF invoice from structured data in milliseconds.

⚡ Usage

Start the MCP server to expose these tools to your agent:

protocolbox start

Or using uv:

uv run protocolbox start

📦 Project Structure

protocolbox/
├── src/protocolbox/      # Core package
│   ├── server.py         # FastMCP server
│   ├── cli.py            # CLI entry point
│   └── tools/            # Tool implementations
├── tests/                # 115+ edge-case tests
├── docs/                 # Documentation site
└── pyproject.toml        # Project config

👨‍💻 Development

We recommend uv for a fast, reliable dev environment.

# Clone and setup
git clone https://github.com/ianuragbhatt/protocolbox.git
cd protocolbox
uv pip install -e ".[dev]"

# Run tests (100% pass rate required)
pytest tests/ -v

# Linting
ruff check .

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on how to add new tools.

Maintainer: Anurag Bhatt (@ianuragbhatt)

License

MIT © 2026 ProtocolBox.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protocolbox-0.1.0.tar.gz (81.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

protocolbox-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file protocolbox-0.1.0.tar.gz.

File metadata

  • Download URL: protocolbox-0.1.0.tar.gz
  • Upload date:
  • Size: 81.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for protocolbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e9b979a7a5ecd3408ff48eaf1ca7a1b525ad49615a378a0da9977721e3caae5
MD5 b029378ab623328e5e054ead245b8b8b
BLAKE2b-256 cb834632b854f5b32a405b806acf5403bd410130361b2580417ffbecb9813d85

See more details on using hashes here.

Provenance

The following attestation bundles were made for protocolbox-0.1.0.tar.gz:

Publisher: publish.yml on ianuragbhatt/protocolbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file protocolbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: protocolbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for protocolbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 312e2b3612726ba2ded5fabfed4a6be8067cd6fb6e52d07f54d64c73eddddae5
MD5 c18a02b99d39abd4a93121ccef6e07ab
BLAKE2b-256 aa96f748edc050a6d5cbf58676efaf187f083c64a8b157ccbd854ddfb11de173

See more details on using hashes here.

Provenance

The following attestation bundles were made for protocolbox-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ianuragbhatt/protocolbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page