Skip to main content
Glama
biome-mcp
by yriveiro

biome-mcp

A Model Context Protocol (MCP) server for running Biome on TypeScript and web projects with token-efficient output.

Overview

biome-mcp gives LLMs direct access to Biome's formatting, linting, and assist checks without shelling out to the CLI. Diagnostic output is parsed structurally and reduced to compact, grouped results before it reaches the model, so long check runs stay readable and cheap.

The server also caches the Biome CLI, configuration, and JavaScript linter documentation and exposes it as searchable resources.

Related MCP server: ts-language-mcp

Features

  • biome_check - Run formatting, linting, and assist checks in one pass

  • biome_lint - Lint-only diagnostics with an all / error / warning severity filter

  • biome_format - Verify formatting without modifying files

  • Structured parsing - json-pretty output avoids fragile parsing of human-readable text

  • Adaptive aggregation - large result sets include rule/file rollups before flat diagnostics

  • changed_only - Check only staged, unstaged, and untracked web files (*.ts, *.tsx, *.js, ...)

  • Documentation cache - Searchable, version-aware cache of Biome docs

  • Bundled Agent Skill - Install biome-mcp skill into .agents/skills with one command

How It Works

biome-mcp implements the Model Context Protocol to expose Biome through read-only tools. Every check tool returns a CheckResult with compact output text and the underlying exit_code; it never writes to source files.

Tool

What it runs

biome_check(paths?, changed_only?)

biome check (format + lint + assist)

biome_lint(paths?, level?, changed_only?)

biome lint, filtered by severity

biome_format(paths?, changed_only?)

biome check with linter and assist disabled

search_documentation(query)

Search the cached Biome docs

update_cache(force?)

Refresh the cached docs from biomejs.dev

Usage

To start the server:

uvx biome-mcp

Or from a checkout:

uv run biome-mcp

Configure an MCP client to launch the server in the project directory to check, e.g. for opencode:

{
  "mcp": {
    "biome-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["biome-mcp"]
    }
  }
}

The server checks the project in its working directory. To target another directory, set BIOME_MCP_PROJECT_DIR.

Biome is invoked through bunx @biomejs/biome by default. Set BIOME_MCP_COMMAND_PREFIX to use another project-local invocation (see docs/configuration.md).

Agent Skill

Install the bundled biome skill in a project when the agent client discovers skills from .agents/skills:

uvx biome-mcp skill install biome --target .

The skill directs agents to the server's read-only tools and the cached documentation resources.

Configuration

Environment variables, all optional:

Variable

Default

Purpose

BIOME_MCP_LOG_LEVEL

INFO

Logging level (stderr)

BIOME_MCP_PROJECT_DIR

server working directory

Project directory to check

BIOME_MCP_COMMAND_PREFIX

bunx @biomejs/biome

Invocation for Biome; empty string uses binaries from PATH

BIOME_MCP_COMMAND_TIMEOUT

none

Optional per-command timeout in seconds

BIOME_MCP_CACHE_DIR

~/.cache/biome-mcp/docs

Documentation cache location

Documentation

See the docs for the full picture:

Development

This project is built with FastMCP and uv.

uv sync --extra dev
uv run ruff check
uv run ruff format --check
uv run ty check
uv run pytest

Available Tools

5 tools
biome_checkA
Read-onlyIdempotent

Run Biome formatting, linting, and assist checks without writing files.

Inputs: paths, changed_only. Returns: Result of a Biome check run. Attributes: output: Token-efficient output for the…

biome_formatB
Read-onlyIdempotent

Check Biome formatting without modifying files.

Inputs: paths, changed_only. Returns: Result of a Biome check run. Attributes: output: Token-efficient output for the…

biome_lintC
Read-onlyIdempotent

Run Biome lint diagnostics without modifying files.

Inputs: level, paths, changed_only. Returns: Result of a Biome check run. Attributes: output: Token-efficient output for the…

search_documentationB

Search cached Biome documentation.

Inputs: query (required). Returns: result

update_cacheC

Refresh the cached Biome documentation.

Inputs: force. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 5 tools

    Disambiguation4/5

    Tools are mostly distinct: biome_check runs all checks, biome_lint and biome_format focus on specific aspects. The hierarchical overlap (check includes lint/format) is clear from descriptions, so misselection is unlikely. No two tools appear to do the same thing.

    Naming Consistency3/5

    Three tools use a biome_ prefix (biome_check, biome_lint, biome_format) while two do not (update_cache, search_documentation). The actions follow a readable verb_noun pattern, but the mixed prefix usage creates inconsistency.

    Tool Count5/5

    Five tools is well-scoped for a Biome utility server. Each tool serves a clear purpose: three for running checks and two for documentation cache management. No unnecessary bloat or thin coverage.

    Completeness4/5

    The server covers the main Biome check categories (format, lint, assist via biome_check) and documentation needs (update and search). Minor gaps exist: no separate assist-only tool or ability to write/fix files, but the read-only design makes this acceptable.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Exposes TypeScript Language Server Protocol functionality to AI agents, enabling them to query types at specific positions, find definitions and references, get diagnostics, run type tests, and type-check inline code just like in an IDE.
      9
      246 npm
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to interact with TypeScript projects through compiler-level code intelligence, providing tools for navigation, type information, diagnostics, refactoring, and semantic search.
      29
      333 npm
      5
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to work with developer tools such as git, npm, Docker, and test runners through structured, schema-validated JSON outputs. Reduces token usage and eliminates fragile terminal text parsing for reliable cross-platform workflows.
      4 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to invoke common developer tools such as git, npm, Docker, and test runners and receive clean, schema-validated JSON instead of fragile terminal text, reducing token usage and parsing errors.
      4 npm
      MIT