Click on "Install 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., "@MCP Openeropen my Documents folder"
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.
MCP Opener
Model Context Protocol server for opening files, folders, and browsers across different operating systems. Designed specifically to handle Linux Flatpak Firefox complexities on distributions like Fedora Bluefin.
Features
Open Folders: Launch system file manager (Nautilus, Finder, Explorer, etc.)
Open Files: Open files with their default applications
Open Browser: Open URLs with configurable browser preferences
Flatpak Firefox Support: Auto-detects and handles Flatpak Firefox installations
Cross-Platform: Works on Linux, macOS, and Windows
Smart File Handling: Automatically copies files to
/tmpfor Flatpak browser access when needed
Installation
Configuration
Configure via environment variables in your .env file or Claude Code MCP settings:
Claude Code Configuration
Add to your Claude Code MCP settings (.claude/settings.json or global settings):
Or using pnpm:
Tools
open_folder
Opens a folder in the system file manager.
Parameters:
path(string, required): Absolute or relative path to the folder
Example:
Behavior by Platform:
Linux: Uses
xdg-open, falls back tonautilusordolphinmacOS: Uses
open(Finder)Windows: Uses
explorer
open_file
Opens a file with its default application.
Parameters:
path(string, required): Absolute or relative path to the file
Example:
Behavior by Platform:
Linux: Uses
xdg-openmacOS: Uses
openWindows: Uses
start
open_browser
Opens a URL in the preferred web browser.
Parameters:
url(string, required): URL to open (must start withhttp://,https://, orfile://)
Example:
Behavior:
Checks configured browser preference (
MCP_OPENER_BROWSER)On Linux with Firefox:
Auto-detects Flatpak installation
For
file://URLs with Flatpak: Copies file to/tmpfor accessibilityUses
flatpak run org.mozilla.firefoxfor FlatpakUses native
firefoxcommand otherwise
Falls back to system default browser if preferred browser unavailable
Special Handling for Fedora Bluefin / Flatpak Firefox:
When opening local HTML files or other file:// URLs with Flatpak Firefox:
File is copied to
/tmp/mcp-opener-<random>/Browser opens the
/tmpcopyCleanup happens after 5 seconds
This works around Flatpak's filesystem sandboxing restrictions.
Platform Support
Platform | File Manager | Browser Detection | Flatpak Support |
Linux | xdg-open, Nautilus, Dolphin | ✅ | ✅ |
macOS | Finder | ✅ | N/A |
Windows | Explorer | ✅ | N/A |
Usage Examples
From Claude Code
Direct Tool Calls
Error Handling
The server provides detailed error messages:
File/folder not found:
"File does not exist: /path/to/file"Invalid URL:
"URL must start with http://, https://, or file://"Platform not supported:
"Unsupported platform: <platform>"No file manager found:
"No file manager found (tried xdg-open, nautilus, dolphin)"
Development
Troubleshooting
Flatpak Firefox not detected
Check if Firefox is installed via Flatpak:
If installed, you should see org.mozilla.firefox. Set MCP_OPENER_FIREFOX_FLATPAK=true explicitly if auto-detection fails.
Files not opening in Flatpak Firefox
Ensure MCP_OPENER_TMP_COPY=true (default). The server will copy files to /tmp for Flatpak accessibility.
Wrong browser opens
Set MCP_OPENER_BROWSER explicitly:
License
MIT
Author
3viky
Contributing
Issues and PRs welcome at github.com/3viky/mcp-opener