TIMBOTGPT/file-opener-mcp
If you are the rightful owner of file-opener-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The File Opener MCP Server is a Model Context Protocol server designed to provide file opening capabilities for Claude AI, with a focus on macOS systems.
open_file
Opens a file or directory with the system's default application, or optionally with a specified application.
reveal_in_finder
Reveals a file or directory in macOS Finder.
File Opener MCP Server
A Model Context Protocol (MCP) server that provides file opening capabilities for Claude AI.
Features
- open_file: Open any file or directory with the system's default application
- reveal_in_finder: Reveal a file or directory in macOS Finder
- Optional application specification (e.g., open with Preview, TextEdit, etc.)
- Cross-platform support (primarily macOS focused)
- Full error handling and validation
Installation
Quick Install
npm install -g file-opener-mcp
From Source
-
Clone the repository:
git clone https://github.com/TIMBOTGPT/file-opener-mcp.git cd file-opener-mcp
-
Install dependencies:
npm install
-
Test the server:
npm start
Usage with Claude Desktop
Add this server to your Claude Desktop MCP configuration (claude_desktop_config.json
):
{
"mcpServers": {
"file-opener": {
"command": "npx",
"args": ["-y", "file-opener-mcp"],
"description": "Open files with system applications"
}
}
}
Or if installed locally:
{
"mcpServers": {
"file-opener": {
"command": "node",
"args": ["/path/to/file-opener-mcp/index.js"],
"description": "Open files with system applications"
}
}
}
Available Tools
open_file
Opens a file or directory with the system's default application, or optionally with a specified application.
Parameters:
path
(required): Full path to the file or directoryapplication
(optional): Specific application to use (e.g., "Preview", "TextEdit")
Example:
{
"name": "open_file",
"arguments": {
"path": "/path/to/documents/report.pdf",
"application": "Preview"
}
}
reveal_in_finder
Reveals a file or directory in macOS Finder.
Parameters:
path
(required): Full path to the file or directory
Example:
{
"name": "reveal_in_finder",
"arguments": {
"path": "/path/to/documents/report.pdf"
}
}
Requirements
- macOS (uses
open
command) - Node.js 16+
- Claude Desktop with MCP support
Security
- File existence is validated before opening
- Only executes safe system
open
commands - Proper error handling and reporting
- No network access required
License
MIT License - see LICENSE file for details
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Support
For issues and questions, please use the GitHub Issues page.