gemini_mcp_firefox
Gemini MCP Clientは、Firefox拡張機能としてGeminiウェブインターフェースにMCP(Model Context Protocol)機能を追加します。この拡張機能は、Geminiによって行われるツールコールを検出し、処理し、応答を返します。複数のMCPサーバーをサポートし、Geminiのネイティブワークスペース機能を保持します。
GitHubスター
1
ユーザー評価
未評価
フォーク
0
イシュー
1
閲覧数
1
お気に入り
0
Gemini MCP Client (Firefox Extension)
This lightweight Firefox extension brings MCP (Model Context Protocol) capability to the Gemini Web Interface. It detects and intercepts tool calls made by Gemini, processes these calls, and sends responses back to Gemini.
Features
- Seamlessly integrates with the Gemini web interface
- Allows Gemini to use external tools via MCP
- Supports multiple MCP servers for greater flexibility
- Preserves Gemini's native Workspace capabilities
- Optional API interface for integration with other applications
Installation
1. Install the Firefox Extension
- Download the latest release from Mozilla: v1.0
- Open Firefox and navigate to
about:addons
- Click the gear icon and select "Install Add-on From File..."
- Select the downloaded
.xpi
file
2. Set Up the Native Messaging Host
The extension requires a Python-based native messaging host to function properly.
Prerequisites
- Python 3.7 or higher
- Firefox browser
Installation Steps
Install Python Dependencies:
pip install fastmcp
Configure the Native Messaging Host:
Windows:
- Open Registry Editor (
regedit
) - Navigate to
HKEY_CURRENT_USER\Software\Mozilla\NativeMessagingHosts\
- Create a new key named
mcp_native_host
- Set the
(Default)
value to the full path of yourmcp_native_host.json
file
- Open Registry Editor (
Linux:
mkdir -p ~/.mozilla/native-messaging-hosts/ cp mcp_native_host.json ~/.mozilla/native-messaging-hosts/
macOS:
mkdir -p ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/ cp mcp_native_host.json ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/
Configure MCP Servers:
Create a file named
mcp_servers_config.json
in the same directory asmcp_native_host.py
with your MCP server configurations:{ "mcpServers": [ { "id": "local_python_stdio_server", "type": "stdio", "enabled": true, "command": "python", "args": ["/path/to/your/local_mcp_stdio_script.py"] }, { "id": "remote_tool_api_http", "type": "streamable-http", "enabled": true, "url": "https://api.exampletools.com/mcp_endpoint", "headers": { "X-Custom-Auth-Token": "YOUR_API_TOKEN" } } ] }
Usage
- After installation, navigate to Gemini
- The extension will automatically detect and process tool calls made by Gemini
- You can verify the extension is working by checking the extension icon in your browser toolbar
API Interface (Optional)
The extension includes an optional API interface that allows other applications to interact with the native host script. This feature is disabled by default.
To enable the API:
# Linux/macOS
./run_native_host.sh --enable-api
# Windows
run_native_host.bat --enable-api
For more details, see the API Documentation.
Troubleshooting
If you encounter issues:
- Check that the native messaging host is properly configured
- Verify that the
mcp_servers_config.json
file is correctly formatted - Look for error messages in the browser console (Ctrl+Shift+J or Cmd+Shift+J)
- For more detailed debugging, see the Developer Documentation
Credits
Full credit to MCP-SuperAssistant for the initial inspiration. This project was created to address performance issues with the MCP-SuperAssistant extension on Chrome.
License
[License information here]
19
フォロワー
31
リポジトリ
1
Gist
130
貢献数