Skip to main content
Glama
mcp-toolbox-server

mcp-toolbox-server

🧰 mcp-toolbox-server β€” a Model Context Protocol tool server

A production-shaped MCP server (built on FastMCP) that exposes a suite of safe utility tools to any MCP client β€” Claude Desktop, IDEs, or your own agent.

Python MCP Tests

🧠 What it does

Model Context Protocol lets LLM clients call external tools over a standard transport. This server registers six tools:

Tool

Description

calculate

safe arithmetic via a restricted AST (no eval, no code execution)

text_stats

character / word / line / unique-word counts

slugify

title β†’ URL slug

hash_text

hash text with any hashlib algorithm

convert_units

length / mass / temperature conversions

sqlite_query

read-only SELECT against a SQLite file (SELECT-only safety gate)

Related MCP server: Aegis MCP Server

πŸ—οΈ Architecture

toolbox/
  calculator.py  text.py  units.py  sqltool.py   # pure, unit-tested logic
  server.py                                       # FastMCP wiring (@mcp.tool)
  __main__.py                                     # python -m toolbox  (stdio)

The tool bodies delegate to pure functions, so the entire toolbox is tested without speaking the MCP protocol or needing a client. Safety is enforced in code: the calculator walks a whitelisted AST, and the SQL tool rejects anything but a single read-only SELECT/WITH.

πŸš€ Run

pip install -r requirements.txt
python -m toolbox          # starts the MCP server on stdio

Register it with an MCP client (e.g. Claude Desktop mcpServers config):

{ "mcpServers": { "toolbox": { "command": "python", "args": ["-m", "toolbox"] } } }

βœ… Test

pip install -r requirements-dev.txt && python -m pytest -q

πŸ“ License

MIT β€” see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI clients to use developer utilities like JSON formatting, JWT decoding, UUID generation, and more via MCP.
      12
      128 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes standard MCP tools for secure calculation, knowledge-base retrieval, document statistics, and sensitive operations like email, export, and deletion with human-in-the-loop approval.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables secure discovery and invocation of sandboxed filesystem, repository inspection, and utility tools through a unified MCP client with schema validation, timeouts, and execution traces.
      -