gemini_mcp_firefox
The Gemini MCP Client is a lightweight Firefox extension that adds Model Context Protocol (MCP) capabilities to the Gemini web interface. It detects and processes tool calls made by Gemini, sending responses back to it. The extension supports multiple MCP servers for flexibility and preserves Gemini's native workspace functionalities.
GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
17
Forks
0
Issues
1
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
.xpifile
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 fastmcpConfigure 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.jsonfile
- 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.jsonin the same directory asmcp_native_host.pywith 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.jsonfile 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]