Provides containerized deployment for portability and isolation, with filesystem mounting capabilities for local access
Complete Git integration for performing standard Git operations like clone, commit, push, pull, and advanced repository analysis
Secure authentication with GitHub using personal access tokens to enable access to private repositories and authenticated operations
Utilizes Mermaid diagrams to visualize system architecture, workflows, and component relationships throughout the documentation
Incorporates Shields.io badges to display version information, license details, and Docker readiness status
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., "@FastFS-MCPshow me all Python files in my current directory"
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.
FastFS-MCP
A high-speed MCP (Model Context Protocol) server for filesystem operations, Git integration, and interactive prompting capabilities, designed to work seamlessly with Claude and AI-native tooling.
🚀 Overview
FastFS-MCP enables AI assistants like Claude to interact with your local filesystem, manage Git repositories, and provide interactive experiences through a standardized JSON-based protocol. Whether you're building AI-assisted development workflows, creating content with Claude, or automating file management tasks, FastFS-MCP provides the bridge between your AI assistant and your local environment.
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph TD
Claude[Claude AI Assistant] <-->|JSON Protocol| MCP[FastFS-MCP Server]
MCP <-->|File Operations| FS[Local Filesystem]
MCP <-->|Git Operations| Git[Git Repositories]
MCP <-->|Interactive Prompts| User[Human User]
subgraph "FastFS-MCP Capabilities"
FS
Git
User
endRelated MCP server: MCP Claude Code
✨ Key Features
Ultra-fast filesystem operations: Access, modify, and manage files with minimal latency
Complete Git integration: Perform all standard Git operations and advanced repository analysis
Interactive prompting: Enable Claude to engage users through structured prompts and forms
GitHub authentication: Securely authenticate with GitHub using personal access tokens or GitHub Apps
JSON protocol: Communicate with Claude Desktop, VSCode, and other AI-native tools using a standard interface
🛠️ Core Components Architecture
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph TD
Server[server.py] --> FastMCP[FastMCP Class]
Server --> FileOps[Filesystem Operations]
Server --> GitTools[git_tools.py]
Server --> PromptHelpers[prompt_helpers.py]
FileOps --> Basic[Basic Commands]
FileOps --> Advanced[Advanced Operations]
FileOps --> Text[Text Processing]
FileOps --> Archive[Archive & Compression]
GitTools --> BasicGit[Basic Git]
GitTools --> AdvancedGit[Advanced Git]
GitTools --> GitAnalysis[Repository Analysis]
GitTools --> GitAuth[GitHub Authentication]
PromptHelpers --> Templates[Prompt Templates]
PromptHelpers --> Interactive[Interactive Tools]
GitAuth --> PAT[Personal Access Token]
GitAuth --> GitHubApp[GitHub App]
GitHubApp --> DirectKey[Direct Key]
GitHubApp --> KeyFromFile[Key from File]💻 Installation & Quick Start
Docker Quick Start
# Build the Docker image
docker build -t fastfs-mcp .
# Run with your local filesystem mounted
docker run -i --rm \
-v C:\\Users\\username:/mnt/workspace:rw \
fastfs-mcpOn Unix/macOS: replace with
-v $HOME:/mnt/workspace
With GitHub Authentication
Using Personal Access Token
docker run -i --rm \
-v C:\\Users\\username:/mnt/workspace:rw \
-e GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here \
fastfs-mcpUsing GitHub App (Option 1: Private Key as Environment Variable)
docker run -i --rm \
-v C:\\Users\\username:/mnt/workspace:rw \
-e GITHUB_APP_ID=your_app_id \
-e GITHUB_APP_PRIVATE_KEY="$(cat path/to/private-key.pem)" \
-e GITHUB_APP_INSTALLATION_ID=your_installation_id \
fastfs-mcpUsing GitHub App (Option 2: Private Key from File in Workspace)
# First, copy your private key to the workspace
cp path/to/private-key.pem C:\\Users\\username\\github-app-key.pem
# Then run with the path to the private key
docker run -i --rm \
-v C:\\Users\\username:/mnt/workspace:rw \
-e GITHUB_APP_ID=your_app_id \
-e GITHUB_APP_PRIVATE_KEY_PATH=/mnt/workspace/github-app-key.pem \
-e GITHUB_APP_INSTALLATION_ID=your_installation_id \
fastfs-mcp🤖 Claude Desktop Configuration
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "C:\\Users\\username:/mnt/workspace:rw",
"fastfs-mcp"
]
}
}
}With GitHub Authentication
Using Personal Access Token
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN",
"-v", "C:\\Users\\username:/mnt/workspace:rw",
"fastfs-mcp"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}Using GitHub App with Private Key as Environment Variable
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "GITHUB_APP_ID",
"-e", "GITHUB_APP_PRIVATE_KEY",
"-e", "GITHUB_APP_INSTALLATION_ID",
"-v", "C:\\Users\\username:/mnt/workspace:rw",
"fastfs-mcp"
],
"env": {
"GITHUB_APP_ID": "your_app_id",
"GITHUB_APP_PRIVATE_KEY": "-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----",
"GITHUB_APP_INSTALLATION_ID": "your_installation_id"
}
}
}
}Using GitHub App with Private Key from File
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "GITHUB_APP_ID",
"-e", "GITHUB_APP_PRIVATE_KEY_PATH",
"-e", "GITHUB_APP_INSTALLATION_ID",
"-v", "C:\\Users\\username:/mnt/workspace:rw",
"fastfs-mcp"
],
"env": {
"GITHUB_APP_ID": "your_app_id",
"GITHUB_APP_PRIVATE_KEY_PATH": "/mnt/workspace/github-app-key.pem",
"GITHUB_APP_INSTALLATION_ID": "your_installation_id"
}
}
}
}📋 Tool Categories
FastFS-MCP provides a comprehensive set of tools organized into logical categories:
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph TD
MCP[FastFS-MCP] --> FS[Filesystem Operations]
MCP --> Git[Git Operations]
MCP --> Prompts[Interactive Prompts]
MCP --> Processing[Text & File Processing]
MCP --> Archive[Archive & Compression]
FS --> Basic[Basic Operations]
FS --> Advanced[Advanced Operations]
Git --> BasicGit[Basic Commands]
Git --> AdvancedGit[Advanced Analysis]
Git --> GitHubAuth[GitHub Authentication]
GitHubAuth --> PAT[Personal Access Token]
GitHubAuth --> GitHubApp[GitHub App]
Prompts --> Templates[Prompt Templates]
Prompts --> Interactive[Interactive Tools]
Processing --> Text[Text Manipulation]
Processing --> Filters[Filters & Transformations]
Archive --> Tar[Tar Operations]
Archive --> Zip[Zip Operations]
Archive --> Compress[Compression Tools]🗂️ Filesystem Operations
Basic Operations
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph LR
ls[ls] --> list[List files and directories]
cd[cd] --> change[Change current directory]
pwd[pwd] --> print[Print working directory]
read[read] --> display[Display file contents]
write[write] --> create[Create or modify files]
grep[grep] --> search[Search file content]
which[which] --> locate[Locate executables]Method | Description |
| List files in a directory |
| Change the current working directory |
| Print the current working directory |
| Read file contents |
| Create or overwrite file content |
| Fast file searching via ripgrep |
| Locate executables in PATH |
Advanced Operations
Method | Description |
| Display directory structure |
| Find files by pattern |
| Copy files or directories |
| Move or rename files |
| Remove files or directories |
| Create directories |
| Display file metadata |
| Change file permissions |
| Show disk usage |
| Show disk space |
| Create a new empty file or update timestamp |
Text & File Processing
Method | Description |
| Stream editor for text transformation |
| Text processing with AWK |
| Show first lines of a file |
| Show last lines of a file |
| Count lines, words, and bytes |
| Select columns from file |
| Sort lines of text files |
| Report or filter repeated lines |
| Number lines in a file |
| Split a file into smaller parts |
| Print the resolved path of a symbolic link |
| Print the resolved absolute path |
Archive & Compression
Method | Description |
| Create/extract tar archives |
| Compress/decompress files |
| Create/extract zip archives |
🌿 Git Operations
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph TD
Git[Git Operations] --> Repo[Repository Management]
Git --> Changes[Change Management]
Git --> Branch[Branch Operations]
Git --> Remote[Remote Operations]
Git --> Analysis[Repository Analysis]
Git --> Auth[GitHub Authentication]
Repo --> init[Initialize Repository]
Repo --> clone[Clone Repository]
Repo --> status[Check Status]
Changes --> add[Stage Changes]
Changes --> commit[Commit Changes]
Changes --> diff[View Differences]
Branch --> checkout[Switch Branches]
Branch --> branch[Manage Branches]
Branch --> merge[Merge Branches]
Remote --> push[Push Changes]
Remote --> pull[Pull Changes]
Remote --> fetch[Fetch Updates]
Analysis --> context[Get Repository Context]
Analysis --> validate[Validate Repository]
Analysis --> suggest[Suggest Commit Messages]
Analysis --> audit[Audit Repository History]
Auth --> PAT[Personal Access Token]
Auth --> GitHubApp[GitHub App]Basic Git Operations
Method | Description |
| Clone a Git repository |
| Initialize a new Git repository |
| Add file(s) to staging area |
| Commit changes to repository |
| Show working tree status |
| Push changes to remote repository |
| Pull changes from remote repository |
| Show commit logs |
| Switch branches or restore files |
| List, create, or delete branches |
| Join development histories together |
| Show Git objects |
| Show changes between commits/working tree |
| Manage remote repositories |
| Stash changes in working directory |
| Manage Git tags |
| Get or set repository or global options |
| Download objects and refs from another repository |
| Show what revision and author last modified each line of a file |
| Print lines matching a pattern in tracked files |
| Show the current HEAD commit information |
Advanced Git Analysis
Method | Description |
| Get comprehensive repo context |
| Get detailed repository information |
| Check repository for common issues |
| Generate commit log statistics |
| Auto-suggest commit messages |
| Audit repository for security issues |
🤝 Interactive Prompts
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
graph TD
Prompts[Interactive Prompts] --> Templates[Prompt Templates]
Prompts --> Operations[Prompt Operations]
Templates --> FilePrompts[File Prompts]
Templates --> ContentPrompts[Content Prompts]
Templates --> ProjectPrompts[Project Prompts]
Templates --> CustomPrompts[Custom Prompts]
Operations --> prompt[Send Prompt]
Operations --> interactive_write[Interactive Write]
Operations --> confirm_overwrite[Confirm Overwrite]
Operations --> select_file[Select File]
Operations --> get_file_content[Get File Content]
Operations --> init_project[Initialize Project]
FilePrompts --> confirm_file_overwrite[Confirm File Overwrite]
FilePrompts --> confirm_directory_delete[Confirm Directory Delete]
FilePrompts --> file_not_found_options[File Not Found Options]
ContentPrompts --> enter_file_content[Enter File Content]
ContentPrompts --> enter_search_pattern[Enter Search Pattern]
ProjectPrompts --> project_initialization[Project Initialization]
ProjectPrompts --> coding_task[Coding Task]
CustomPrompts --> custom[Custom Message]Prompt Templates
Template | Description |
| Ask user to confirm before overwriting an existing file |
| Warn user before deleting a directory |
| Provide options when a file is not found |
| Get content for a file from the user |
| Ask user for a search pattern |
| Collect information to initialize a new project |
| Define parameters of a coding task |
| Let user select a file from a list |
| Create a completely custom prompt message |
Interactive Functions
Function | Description |
| Send an interactive prompt to the user |
| List available prompt templates |
| Write file with user-provided content |
| Ask before overwriting files |
| Let user choose from file list |
| Get content for file from user |
| Initialize project with guided setup |
📝 Protocol Usage
FastFS-MCP uses a simple JSON-based protocol to communicate with Claude and other AI tools.
Request Format
{
"method": "METHOD_NAME",
"params": {
"param1": "value1",
"param2": "value2"
}
}Response Format
{
"result": RESPONSE_DATA
}Examples
Basic File Operation
// Request
{
"method": "ls",
"params": { "path": "." }
}
// Response
{
"result": ["main.tf", "README.md"]
}Git Repository Context
// Request
{
"method": "context",
"params": {}
}
// Response
{
"result": {
"current_branch": "main",
"repository_root": "/mnt/workspace/my-project",
"is_clean": false,
"head_commit": "a1b2c3d4e5f6...",
"remotes": {
"origin": "https://github.com/user/repo.git"
},
"recent_commits": [
"a1b2c3d4 Update README.md",
"b2c3d4e5 Fix bug in main function",
"c3d4e5f6 Add new feature"
]
}
}Interactive Prompt Flow
// Request
{
"method": "prompt",
"params": {
"prompt_type": "custom",
"message": "What would you like to name your file?"
}
}
// Response to stdout (visible to user)
{
"type": "user_prompt",
"prompt": "What would you like to name your file?"
}
// User response (from stdin)
{
"type": "user_response",
"response": "myfile.txt"
}
// Final result to Claude
{
"result": {
"response": "myfile.txt",
"timestamp": 1622548123.45
}
}🔧 GitHub Authentication
FastFS-MCP supports two methods of GitHub authentication to enable secure Git operations with GitHub repositories:
Personal Access Token (PAT) Authentication
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
sequenceDiagram
participant Claude
participant FastFS
participant GitHub
Claude->>FastFS: git_clone(private_repo_url)
FastFS->>GitHub: Authentication with PAT
GitHub-->>FastFS: Authentication successful
FastFS->>GitHub: Clone repository
GitHub-->>FastFS: Repository content
FastFS-->>Claude: Clone successfulWhen a GitHub PAT is provided via the GITHUB_PERSONAL_ACCESS_TOKEN environment variable, Git operations that interact with GitHub (clone, push, pull, fetch) will automatically use the token for authentication, enabling:
Access to private repositories
Operations that require authentication (push, create repo, etc.)
Avoiding rate limits on API calls
GitHub App Authentication
%%{ init: { "theme": "dark", "look": "handDrawn", "themeVariables": { "handDrawn": true } } }%%
sequenceDiagram
participant Claude
participant FastFS
participant GitHub
Claude->>FastFS: git_clone(private_repo_url)
FastFS->>FastFS: Generate JWT using private key
FastFS->>GitHub: Request installation token with JWT
GitHub-->>FastFS: Installation token
FastFS->>GitHub: Clone repository with installation token
GitHub-->>FastFS: Repository content
FastFS-->>Claude: Clone successfulGitHub App authentication provides more granular permissions and better security compared to Personal Access Tokens:
Fine-grained permissions: GitHub Apps can be configured with specific permissions
Repository-specific access: GitHub Apps can be installed on specific repositories
Organization-level control: Organization admins can control which apps are installed
Automatic token refresh: Installation tokens expire after 1 hour and are automatically refreshed
To use GitHub App authentication, provide the following environment variables:
GITHUB_APP_ID: Your GitHub App's ID
And one of these options for the private key:
GITHUB_APP_PRIVATE_KEY: The private key content for your GitHub App (PEM format) as an environment variableGITHUB_APP_PRIVATE_KEY_PATH: Path to a file containing the private key (PEM format)
Optionally:
GITHUB_APP_INSTALLATION_ID: The specific installation ID to use (if not provided, FastFS-MCP will attempt to use the first installation)
Security Considerations for Private Keys
When using GitHub App authentication, consider these security practices for managing private keys:
File-based private key (recommended):
Store your private key in your workspace and use
GITHUB_APP_PRIVATE_KEY_PATHEnsure proper file permissions (chmod 600) on the private key file
This approach avoids having the key in process environment variables or shell history
Environment variable private key:
Use this for development or when you can't mount a file
Be aware that environment variables can be visible in process lists on some systems
🐳 Docker Environment
FastFS-MCP runs in a Docker container for portability and isolation, with the following tools installed:
ripgrepfor high-performance file searchingjqfor JSON parsing and manipulationsedandgawkfor text processingtreefor directory visualizationfd-findfor alternative file findingcoreutilsfor standard Unix toolszip/unzip,gzip, andxz-utilsfor compressiongitfor repository operations
🚀 Use Cases
AI-assisted development: Let Claude help you code, manage files, and use Git all within the same conversation
Content creation workflows: Enable Claude to read, write, and organize files for writing projects
Repository management: Get insights into Git repositories and automate common Git operations
Interactive project setup: Guide users through structured project initialization with interactive prompts
System administration: Perform file system operations and maintenance tasks with AI assistance
🔒 Security Considerations
FastFS-MCP provides direct access to your filesystem and Git repositories. Consider the following security practices:
Only run FastFS-MCP with appropriate file system permissions
Mount only the directories you need to expose to Claude
Use separate GitHub PATs with limited scope for authentication, or prefer GitHub Apps for better security
Regularly review the logs and commands executed by the server
For GitHub Apps, store the private key securely and use installation-specific tokens
When using GitHub App authentication, prefer file-based private keys over environment variables when possible
📄 License
FastFS-MCP is released under the MIT License. See the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📚 Further Documentation
Prompt Guide - Detailed documentation on interactive prompts
Claude Prompt Examples - Examples of how Claude can use FastFS-MCP
Claude Prompt Guide - Guide for Claude on working with FastFS-MCP
Built for AI-enhanced CLI and developer workflows with speed, structure, and simplicity.