Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The Standard Library for the Agentic Web. A collection of verified, high-performance MCP tools designed to give AI Agents reliable superpowers.

License

Notifications You must be signed in to change notification settings

ianuragbhatt/protocolbox

ProtocolBox πŸ“¦

License: MIT Build Status Code Style: Ruff MCP Compliant Built for Antigravity

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 8 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.
Web Search web_search(query: str, max_results: int) -> str Privacy-focused web search using DuckDuckGo. Returns formatted Markdown results.
Safe Math safe_math(expression: str) -> str Securely evaluates mathematical expressions without eval(). Supports arithmetic and common math functions.
Get Time get_time(timezone: str) -> str Returns the current real-world time in any timezone (ISO 8601 format).
Get Transcript get_transcript(video_url: str) -> str Fetches the English transcript of a YouTube video as clean text.
Remember remember(key: str, value: str) -> str Stores a key-value pair in persistent local memory.
Recall recall(key: str) -> str Retrieves a value from persistent local memory by key.

⚑ 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
β”‚ β”œβ”€β”€ scraper.py # scrape()
β”‚ β”œβ”€β”€ json_healer.py# heal_json()
β”‚ β”œβ”€β”€ search.py # web_search()
β”‚ β”œβ”€β”€ math_utils.py # safe_math()
β”‚ β”œβ”€β”€ time_utils.py # get_time()
β”‚ β”œβ”€β”€ youtube.py # get_transcript()
β”‚ └── memory.py # remember() + recall()
β”œβ”€β”€ tests/ # 280+ 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.

About

The Standard Library for the Agentic Web. A collection of verified, high-performance MCP tools designed to give AI Agents reliable superpowers.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /