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.2.tar.gz (82.1 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.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: protocolbox-0.1.2.tar.gz
  • Upload date:
  • Size: 82.1 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.2.tar.gz
Algorithm Hash digest
SHA256 7041692881ad619a5d597073f0d41d2fafd94092373b18a729b6ea538347229e
MD5 6db7b7887e8629cb32b0a50c6afa85d4
BLAKE2b-256 83dead536ca5639094606b74e70dcbd606ffebcc1c81b0f5cbf05a32061d7f9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for protocolbox-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: protocolbox-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c341ceb51d8cfb238d8cca80b6ed936d1a7f2e15fffca0f1150c6c655d99af4
MD5 8abe66910e321eb439387a792c231944
BLAKE2b-256 fe41a30e9febf6a38b9b2684c3f806ecf7a826fd5bdd96c8c2c6e5298776dc44

See more details on using hashes here.

Provenance

The following attestation bundles were made for protocolbox-0.1.2-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