Allows Hugging Face models to access file operations and other tools through the MCP client library
Supports local model integration through Ollama, providing access to file operations and other tools
Enables OpenAI models to utilize the MCP server's tools including file operations via the MCP client
Universal MCP Server
A model-agnostic Model Context Protocol (MCP) server implementation that works with any compatible AI model or client, not just Claude Desktop.
🎯 Project Goals
- Universal Compatibility: Works with any model that supports MCP (Claude, local models via Hugging Face, OpenAI, etc.)
- Simple Architecture: Clean, from-scratch implementation following official MCP specification
- Extensible Tools: Easy to add new tools and capabilities
- Learning-Focused: Well-documented code to understand MCP internals
📋 Project Scope
Phase 1: Core MCP Server
- JSON-RPC 2.0 over stdio communication
- Basic MCP protocol methods (
initialize
,tools/list
,tools/call
) - File reading tool for specified directories
- Error handling and validation
- Configuration via command line/config file
Phase 2: Tool Expansion
- File writing capabilities
- Directory listing and navigation
- Text processing tools (search, replace, etc.)
- System information tools
- Custom tool plugin system
Phase 3: Multi-Model Client
- Generic MCP client library
- Hugging Face model integration
- OpenAI API integration
- Local model support (Ollama, etc.)
- Web interface for testing
🏗️ Architecture
🚀 Quick Start
Running the MCP Server
Integrating with Models
Claude Desktop
Hugging Face Models
🛠️ Available Tools
File Operations
read_file
: Read contents of a file within allowed pathslist_directory
: List files and folders in a directoryfile_info
: Get file metadata (size, modified date, etc.)
Planned Tools
write_file
: Write content to filessearch_files
: Search for text within filesexecute_command
: Run system commands (with safety restrictions)
📁 Project Structure
🔧 Configuration
Server Configuration (config/server_config.yaml
)
Command Line Options
🧪 Testing
Unit Tests
Manual Testing
Integration Tests
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A model-agnostic Model Context Protocol server implementation that works with any compatible AI model or client, allowing tools like file operations to be accessed through the MCP standard.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.Last updated -33Python
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.Last updated -139JavaScriptMIT License
- AsecurityFlicenseAqualityAn all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.Last updated -2Python
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that enables AI assistants to perform comprehensive file operations including finding, reading, writing, editing, searching, moving, and copying files with security validations.Last updated -7TypeScript