browser-ai-rag
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@browser-ai-ragSearch internal documents for the expense reimbursement policy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
browser-ai-rag
『ブラウザのAIが社内で働きだす ― MCPで作る文書検索・メール・勤怠』(江藤 潔)のサンプルです。
claude.ai や chatgpt.com のような、ブラウザで使う AI から呼ばれるリモート MCP サーバーを作ります。本の章が進むごとにこのリポジトリも育っていき、社内文書の検索、メールの確認と返信、タイムカードなど、いくつもの MCP サーバーがそろいます。特定の AI サービスには寄せていないので、リモート MCP に対応したサービスならどれからでもつながります。
本の全30章ぶんがそろっています。章ごとの対応とタグは docs/chapters.md を見てください。
サーバー | 起動 | URL | 章 |
社内文書検索(ログインもここ) |
|
| 第3部 |
メール |
|
| 第20〜22章 |
タイムカード |
|
| 第23〜24章 |
売上・案件 |
|
| 第26章 |
予定とタスク |
|
| 第27章 |
運用の窓口 |
|
| 第28章 |
六本をまとめた一本(実験) |
|
| 第29章 |
動かしてみる
Python 3.11 以上と uv を使います。
uv sync
uv run python -m browser_ai_raghttp://127.0.0.1:8000/mcp で待ち受けます。テストは uv run pytest で走ります。
Related MCP server: M365 MCP Server
ブラウザの AI からつなぐ
ブラウザの AI は、あなたのパソコンに直接つなぎに来るわけではありません。AI の会社のクラウドが、インターネット越しにこのサーバーを呼びに来ます。なので、手元で動かしているうちはトンネルで外から届くようにします。
cloudflared tunnel --url http://127.0.0.1:8000表示された https://xxxx.trycloudflare.com のホスト名を .env に書いて、サーバーを起動し直します。
RAG_PUBLIC_HOSTS=xxxx.trycloudflare.comこれを忘れると、AI 側からは「つながらない」とだけ出て、サーバーのログには 421(Invalid Host header)が残ります。いちばんよく踏む落とし穴です。
あとは https://xxxx.trycloudflare.com/mcp を、使っている AI のコネクタ設定に登録します。サービスごとの手順は docs/connect.md にまとめています。登録できたら、AI に「whoami ツールを使って」と頼んでみてください。Claude からなら Claude の、ChatGPT からなら ChatGPT のクライアント名が返ってきます。同じサーバーに、別々の AI がつながっているのがわかります。
設定
.env.example をコピーして .env を作ります。
変数 | 既定値 | 意味 |
|
| 待ち受けるアドレス |
|
| 待ち受けるポート |
| なし | 外から呼ばれるときのホスト名(カンマ区切り) |
| なし |
|
| なし | 公開する URL。設定するとログイン(OAuth)が有効になる |
|
| 文書・索引・各サーバーのデータベースの置き場所 |
メール・タイムカード・売上・予定・運用の窓口の設定は、.env.example に章ごとにまとめてあります。
ライセンス
Apache License 2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to securely connect with SAP ABAP and BTP services, allowing execution of function modules, BAPIs, table reads, and various BTP operations through MCP.1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA secure remote MCP server that integrates Microsoft 365 services with AI assistants, enabling email, calendar, Teams, and contact operations via the Microsoft Graph API.2MIT
- AlicenseAqualityCmaintenanceMCP server that provides AI assistants direct access to Microsoft Dynamics 365 Business Central using its native WebSocket protocol, enabling page navigation, data operations, actions, and report execution without OData or browser automation.1447 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server that gives AI assistants direct access to Microsoft Dynamics 365 Business Central via its native WebSocket protocol, enabling page operations, data reading/writing, actions, search, reports, and more.47 npmMIT