Baseline MCP Server

by yamanoku

37 stars
346 downloads
Not rated
GitHub Website

About

特定のWeb APIに関するBaselineの状況を提供するModel Context Protocolサーバー

Details

Author
yamanoku
GitHub stars
37
Downloads
346
Categories
Other

- Search for web features using the Web Platform Dashboard API
- Provide Baseline status (widely, newly, limited, no_data)
- Supply browser implementation details (version and date)
- Provide feature usage data
- Exclude specific browsers from search results

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Baseline MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Configure the server in your MCP client (Claude Desktop, VS Code) by running it with Deno or Docker. Deno is recommended; grant permission only for api.webstatus.dev. The JSR package @yamanoku/baseline-mcp-server is used. JSON configuration examples are provided for cline_mcp_settings.json and VS Code settings.json.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "baseline mcp server": {
            "baseline-mcp-server": {
                "command": "deno",
                "args": [
                    "run",
                    "--allow-net=api.webstatus.dev",
                    "jsr:@yamanoku/baseline-mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "baseline-mcp-server": {
        "command": "deno",
        "args": [
            "run",
            "--allow-net=api.webstatus.dev",
            "jsr:@yamanoku/baseline-mcp-server"
        ]
    }
}

<p align="center">
Baseline MCP Serverロゴ
</p>

<h1 align="center">Baseline MCP Server</h1>

日本語版 | English Version

Web Platform APIのサポート状況を提供するModel Context Protocolサーバーです。

JSR Version

概要

このサーバーは、Web Platform DashboardのAPIを使用して、WebのAPI機能のBaselineステータス(サポート状況)を取得できるMCPサーバーを実装しています。クエリに基づいてWeb機能の情報を取得し、その結果をMCPクライアントに返します。

Claude Desktop上でdetails要素にまつわるBaseline情報を質問してMCPサーバーを経由してその結果が反映されている。内容は<details>要素、相互排他的な<details>要素、::details-content疑似要素のそれぞれをリストアップしてBaselineの情報を伝えている。

機能

- Web Platform DashboardのAPIを使用した機能検索
- 機能のBaselineステータス(widelynewlylimitedno_data)の提供
- ブラウザ実装状況(バージョンと実装日)の提供
- 機能の使用状況データの提供
- 特定のブラウザを除外した機能検索(chrome, edge, firefox, safari
- MCPを介した各種AIモデルとの連携

Baselineステータスについて

Baselineステータスは、Web機能のブラウザサポート状況を示します:

- widely:
広くサポートされているWeb標準機能。ほとんどのブラウザで安全に使用できます。
- newly:
新しく標準化されたWeb機能。主要なブラウザでサポートされ始めていますが、まだ普及途上です。
- limited:
限定的にサポートされているWeb機能。一部のブラウザでは使用できないか、フラグが必要な場合があります。
- no_data:
現時点ではBaselineに含まれていないWeb機能。ブラウザのサポート状況を個別に確認する必要があります。

Baselineについての詳細については「Baseline (互換性) - MDN Web Docs 用語集」を参照してください。

MCPクライアントでの設定

- サーバーを起動するにあたり、Denoの使用を推奨します
- パーミッションとしてapi.webstatus.devのみのアクセスを許可してください
- @yamanoku/baseline-mcp-serverを指定するか、お手元のローカル環境にbaseline-mcp-server.tsを設置して読み取るように設定してください

Claude Desktop

Claude
DesktopのMCPクライアントで使用するには、以下のようにcline_mcp_settings.jsonに設定を追加します。

{
  "mcpServers": {
    "baseline-mcp-server": {
      "command": "deno",
      "args": [
        "run",
        "--allow-net=api.webstatus.dev",
        "jsr:@yamanoku/baseline-mcp-server"
      ]
    }
  }
}

Visual Studio Code

Visual Studio
CodeのMCPクライアントで使用するには、以下のようにsettings.jsonに設定を追加します。

{
  "mcp": {
    "servers": {
      "baseline-mcp-server": {
        "command": "deno",
        "args": [
          "run",
          "--allow-net=api.webstatus.dev",
          "jsr:@yamanoku/baseline-mcp-server"
        ]
      }
    }
  }
}

Dockerによる起動

最初にDockerイメージをビルドします。

docker build -t baseline-mcp-server .

MCPクライアントの設定でDockerコンテナを実行するようにします。

{
  "mcpServers": {
    "baseline-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "baseline-mcp-server:latest"
      ]
    }
  }
}

謝辞

このOSSはGPT-4o Image Generationによってロゴを製作、Claude 3.7
Sonnetによって実装、ドキュメントのサンプルを提案いただきました。感謝申し上げます。

ライセンス

MIT License

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.