Skip to main content
Glama

@businessmaps/bifrost

CI npm

AIツールがブラウザで実行中の関数を呼び出せるようにするMCPサーバーです。

このデーモンは、任意のMCPクライアントとブラウザタブの間に配置されます。片側でstdioを介してJSON-RPCを話し、もう片側でWebSocketを話します。ブラウザアプリが接続してツールを登録すると、AIがそれらを呼び出せるようになります。

クイックスタート

1. AIツールに追加する

Claude Code:

claude mcp add --transport stdio bifrost -- npx @businessmaps/bifrost --no-auth

Claude Desktop - ~/Library/Application Support/Claude/claude_desktop_config.json に追加:

{
  "mcpServers": {
    "bifrost": {
      "command": "npx",
      "args": ["@businessmaps/bifrost", "--no-auth"]
    }
  }
}

Cursor - .cursor/mcp.json に追加:

{
  "mcpServers": {
    "bifrost": {
      "command": "npx",
      "args": ["@businessmaps/bifrost", "--no-auth"]
    }
  }
}

インストールは不要です。npxが自動的にパッケージをダウンロードして実行します。

2. ブラウザアプリにクライアントを追加する

npm i @businessmaps/bifrost-browser

またはCDN経由:

<script src="https://unpkg.com/@businessmaps/bifrost-browser"></script>

TypeScriptの型定義が含まれています。

3. ツールを登録する

import { BifrostBrowser } from "@businessmaps/bifrost-browser";

const bridge = new BifrostBrowser({ port: 3099 });

bridge.registerTools([
  {
    name: "get_page_title",
    description: "Returns the page title",
    inputSchema: { type: "object", properties: {} },
    handler: async () => document.title,
  },
  {
    name: "get_selection",
    description: "Returns the user's current text selection",
    inputSchema: { type: "object", properties: {} },
    handler: async () => window.getSelection().toString(),
  },
]);

bridge.connect();

これで完了です。AIはブラウザタブ内の get_page_titleget_selection を呼び出せるようになります。ハンドラーはDOM、Canvas、IndexedDB、クリップボード、fetchなどに完全にアクセスできます。

Related MCP server: @teatak/mcp-server-browser

認証

デフォルトでは、デーモンは起動時にランダムなトークンを生成します。取得方法は2つあります:

  • ターミナルモード - デーモン起動時にトークンが画面に表示されます

  • MCPモード - AIが組み込みの bifrost_connection_info ツールを呼び出してトークンを取得し、アプリに貼り付けるべき内容を教えてくれます

トークンをクライアントに渡します:

const bridge = new BifrostBrowser({ port: 3099, token: "TOKEN" });

ローカル開発中は --no-auth を使用して認証を完全にスキップできます。

複数のタブ

各タブは独自のツールを登録します。呼び出しは、そのツールを所有しているタブにルーティングされます。タブを切断すると、そのツールは削除されます。

オプション

--port <port>     WebSocket port        (default: 3099)
--timeout <secs>  Tool call timeout     (default: 120)
--no-auth         Disable token auth    (dev only)
--help, -h        Show this message
--version, -v     Show version

開発

git clone https://github.com/Business-Maps/bifrost.git && cd bifrost
npm install
npm test

アーキテクチャ · クライアントAPI · 貢献

ライセンス

Apache 2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    An MCP server that provides AI models with full browser automation capabilities through Chrome. It enables navigation, interaction, screenshots, and complete DevTools access by bridging AI clients with a companion Chrome extension.
    99
    16
    3
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that runs in the browser, letting web pages register custom tools and prompts and expose them to an MCP client over WebSocket. Enables agents to drive UI, call page-scoped APIs, and get human-in-the-loop confirmation.
    15
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Turns your Chrome browser into an MCP server, allowing AI clients to control browser actions like clicking, typing, navigating, and data extraction through custom JavaScript tools.
    29
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables websites to expose JavaScript functions as MCP tools, allowing AI agents to interact with the browser environment via a protocol and Chrome extension.
    1,094
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Business-Maps/bifrost'

If you have feedback or need assistance with the MCP directory API, please join our Discord server