Biome MCP

Biome MCP is a Python framework for registering Model Context Protocol tools and exposing the same operations through an application CLI. It does not connect to an editor or browser by itself. Each adapter supplies the application tools, connection and permissions.

Run a tool in process

Install Git, uv and Python 3.11 or later.

git clone https://github.com/german-krasnikov/biome-mcp.git
cd biome-mcp
uv sync

Save this as example.py:

import asyncio

from fastmcp import Client
from biome_mcp.mcp.compose import CompactMCP, strip_titles

server = CompactMCP("capture", schema_hooks=[strip_titles])

@server.tool
def frame_count(seconds: int, fps: int = 6) -> str:
    """Calculate how many frames a capture will contain."""
    return f"{seconds * fps} frames"

async def main():
    async with Client(server) as client:
        reply = await client.call_tool("frame_count", {"seconds": 2})
        print(reply.content[0].text)

asyncio.run(main())

Run uv run python example.py. The client and server run in the same process, print 12 frames and need no credentials or editor. To use stdio, replace asyncio.run(main()) with server.run(transport="stdio"). Configure your MCP client to launch the installed environment’s Python interpreter with the absolute script path.

Choose a path

  • Tool surfaces explains how tools are registered, discovered and called.
  • Development covers verification, generated code and the boundaries between repositories.
  • For an application you can run today, use an adapter such as Cocos Creator or libGDX.