Skip to content

beycom/onetool-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

466 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OneTool

🧿 One MCP for developers - No tool tax, no context rot.
240+ tools including Brave, Google, Context7, Excalidraw, Version Checker, Excel, File Ops, Database, Image Vision, Playwright & Chrome DevTools Utils and many more.

PyPI License Python GitHub stars

Works with Claude Code or any MCP client


The Problem

Each MCP server consumes 3K-30K tokens per request. Connect 5 servers and you've burned 55K tokens before the conversation starts. Connect 10+ and you're at 100K tokens.

The math is brutal: Claude Opus 4.5 at $5/M input tokens, 20 days Γ— 10 conversations Γ— 10 messages Γ— 3K tokens = $30/month per MCP server - even if you never use the tools.

And then there's context rot - your AI literally gets dumber as you add more tools (Chroma Research, 2025).

The Solution

OneTool is one MCP server that exposes tools as a Python API. Instead of reading tool definitions, your agent writes code:

__onetool brave.search(query="react docs 2026")

Configure one MCP server. Use unlimited tools.

"Agents scale better by writing code to call tools instead. This reduces the token usage from 150,000 tokens to 2,000 tokens...a cost saving of 98.7%"

β€” Anthropic Engineering

96% fewer tokens. 30Γ— lower cost. No context rot.

πŸ“– Read the full story


Why not just use FastMCP Code Mode?

Framework feature vs. installed product. FastMCP is a toolkit for building MCP servers; Code Mode, ProxyProvider, and the Monty sandbox are ingredients a developer must adopt and expose when authoring their own MCP server. None of them reach an end user (a Claude Code / Cursor / Codex user) unless someone builds and ships a server around them. OneTool is that shipped server: it turns those framework capabilities into something a user installs and uses immediately, wrapped with 200+ curated tools, the param/alias/snippet forgiveness layer, ctx handles, the prompt + skill that teach an LLM to drive it, rich config, and a security model. A framework capability you'd have to build vs. a product you install.

Corollary: adopting a FastMCP internal (Code Mode, ProxyProvider, Monty) is an implementation choice OneTool makes internally β€” never a positioning risk, because the story is the product, not the plumbing.


Install

Bootstrap (installs uv if missing, installs OneTool, initialises config, prints MCP config):

curl -LsSf https://onetool.beycom.online/install.sh | sh          # macOS / Linux
irm https://onetool.beycom.online/install.ps1 | iex               # Windows (PowerShell)

Or install manually with uv:

uv tool install 'onetool-mcp[all]'   # everything
onetool init --config ~/.onetool

Then print ready-to-paste MCP client config with resolved absolute paths and add it to your client (claude-code, claude-desktop, cursor, or vscode):

onetool init mcp-config --client claude-code   # or omit --client for all four

That's it. All 240+ tools work out of the box.

Verify: onetool init validate --config ~/.onetool/onetool.yaml

Install the ot-ref skill into your agent with vercel-labs/skills:

npx skills add https://github.com/beycom/onetool-mcp --skill ot-ref --agent claude

πŸ“– Full installation guide


Use from the CLI

Works as an MCP server and as a direct CLI bridge into a running MCP process. Useful for agent harnesses, scripts, and automation:

# Recommended local MCP root mode: stdio
onetool serve --config .onetool/onetool.yaml

# URL-based MCP root mode for containerized clients
onetool serve --transport http --config .onetool/onetool.yaml --host 127.0.0.1 --port 8767 --path /mcp

# Enable the MCP-owned direct API in onetool.yaml:
# direct.host.enabled: true

# Start OneTool as MCP, then use the port printed in startup logs.
onetool direct run --port 8765 "ot.packs()" --format json | jq '.[0].name'
onetool direct run --port 8765 "brave.search(query='latest AI news')" --format raw

πŸ“– Direct usage guide


Features

Feature Description
96% Token Savings ~2K tokens no matter how many tools you add
240+ Built-in Tools Web search, databases, file ops, diagrams, conversions
Explicit Execution See exactly what runs β€” __onetool brave.search(q="AI")
Live Whiteboard Draw diagrams with a Mermaid-compatible DSL via Excalidraw
MCP Server Proxy Wrap existing MCP servers without the tool tax
Encrypted Secrets age-encrypted secrets.yaml backed by your OS keychain
Forge Tools Build new tools as part of the conversation
Image Vision Routes to a cheaper, better vision model via ot_image (img). Zero host tokens. Supports local files, URLs, clipboard; PNG, JPEG, GIF, WebP, TIFF, HEIC, AVIF, SVG.
Smart Context ot_context (ctx) β€” SQLite+FTS5 store. Search and navigate large outputs without filling the context window.
Smart Tools Delegate to cheaper LLMs (10Γ— savings)
Security Layers AST validation, path boundaries, output sanitisation

Tools

27+ packs, 240+ tools ready to use:

Pack Tools Extra Description
brave search, news [util] Web and news search
chrome_util highlight_element, guide_user [dev] Browser annotations (DevTools)
console show, list, read, clear onetool-console outbox messages
context7 search, doc [dev] Library documentation
convert pdf_to_md, docx_to_md, pptx_to_md [util] Document conversion
db query, schema, tables, sample [dev] Database operations
diagram create, get_playground_url [dev] Mermaid / Kroki diagrams
excel read, write, query [util] Excel files
file read, write, grep, slice, toc [util] File operations
ground search [util] Google Grounding search
knowledge search, ask, write, read, grep [util] RAG knowledge base (FTS5+vector)
mem write, read, search, grep, ask, inspect, query [util] Persistent memory
ot_forge create_ext, validate_ext Scaffold new tool packs
ot_context (ctx) write, read, search, grep, slice, toc Smart context store (SQLite+FTS5)
ot_image (img) load, load_batch, ask, summary, list, delete, purge [util] Image vision via dedicated model
ot_llm transform, transform_file LLM-powered transforms
ot_secrets init, encrypt, audit, rotate Secrets encryption
ot_timer start, elapsed, list Named timers
ot help, tools, stats, status Introspection
package npm, pypi, cargo [dev] Package versions
play_util highlight_element, guide_user [dev] Browser annotations (Playwright)
ripgrep search, count [dev] Fast code search
tavily search, search_batch, research [util] AI-native search
webfetch fetch, fetch_batch [dev] Web fetching
whiteboard open, draw, screenshot, save [util] Live Excalidraw canvas

πŸ“– Complete tools reference β€” full summary table with all 240+ tools


MCP Server Proxy

Wrap any existing MCP server and call it explicitly - simple yaml config without the tool tax:

# .onetool/onetool.yaml
servers:
  local_tools:
    type: stdio
    command: npx
    args: ["-y", "some-mcp-server@latest"]
  private_api:
    type: http
    url: ${PRIVATE_MCP_URL}
    auth:
      type: bearer
      token: ${PRIVATE_MCP_TOKEN}
__onetool private_api.read_resource(path="README.md")

πŸ“– Configuration guide


Extending

Drop a Python file, get a pack. No registration, no config:

# .onetool/tools/wiki.py
pack = "wiki"

def summary(*, title: str) -> str:
    """Get Wikipedia article summary."""
    import httpx
    url = f"https://en.wikipedia.org/api/rest_v1/page/summary/{title}"
    return httpx.get(url).json().get("extract", "Not found")
__onetool wiki.summary(title="Python_(programming_language)")

πŸ“– Creating tools guide


Documentation


References


Telemetry

OneTool sends anonymous startup pings (event type, version, OS). No personal data. Opt out: export DO_NOT_TRACK=1 or set telemetry.enabled: false in onetool.yaml. Details


Issues

Check for existing issues first:

Raise a new issue: github.com/beycom/onetool-mcp/issues/new


Support

If you find OneTool useful:

Ko-fi


License

GPLv3

About

🧿 One MCP for developers - no tool tax, no context rot. 100+ tools including Brave, Google, Context7, Excalidraw, AWS, Version Checker, Excel, File Ops, Database, Playwright, Chrome DevTools and many more.

Topics

Resources

License

Stars

Watchers

Forks

Contributors