Rust MCP Servers
No description available
Ask AI about Rust MCP Servers
Powered by Claude ยท Grounded in docs
I know everything about Rust MCP Servers. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
๐ฆ Rust MCP Servers
A collection of high-performance Model Context Protocol (MCP) servers built with Rust, providing specialized tools and resources for AI assistants and applications.
๐ Available Servers
| Server | Description | Status | Crates.io |
|---|---|---|---|
| Time MCP Server | Timezone-aware time operations with DST handling | โ Stable | |
| Filesystem MCP Server | Secure filesystem operations with directory allowlisting | โ Stable | |
| Database MCP Server | Database queries and operations | ๐ง Planned | - |
| Web MCP Server | HTTP requests and web scraping | ๐ง Planned | - |
| System MCP Server | System information and monitoring | ๐ง Planned | - |
๐ Quick Start
Prerequisites
- Rust 1.85+ - Install Rust
- Git - For cloning the repository
Installation
Install Individual Servers
# Install the Time MCP Server
cargo install mcp-server-time
# Install the Filesystem MCP Server
cargo install mcp-server-filesystem
# Future servers will be available similarly
# cargo install mcp-server-database
Build from Source
# Clone the repository
git clone https://github.com/sabry-awad97/rust-mcp-servers.git
cd rust-mcp-servers
# Build all servers
cargo build --release
# Build specific server
cargo build --release --bin mcp-server-time
cargo build --release --bin mcp-server-filesystem
# Run tests
cargo test
๐ ๏ธ Usage
With Claude Desktop
Add servers to your Claude Desktop configuration:
{
"mcpServers": {
"time": {
"command": "mcp-server-time"
},
"filesystem": {
"command": "mcp-server-filesystem",
"args": ["--allowed-dir", "/path/to/your/projects"]
}
}
}
With MCP Inspector
Test any server using the MCP Inspector:
# Test Time MCP Server
npx @modelcontextprotocol/inspector mcp-server-time
# Test Filesystem MCP Server
npx @modelcontextprotocol/inspector mcp-server-filesystem --allowed-dir /path/to/test
๐๏ธ Architecture
This workspace follows a modular architecture with shared dependencies and consistent patterns:
rust-mcp-servers/
โโโ crates/
โ โโโ time_mcp/ # Time operations server
โ โโโ fs_mcp/ # Filesystem operations server
โ โโโ database_mcp/ # Database server (planned)
โ โโโ shared/ # Shared utilities (planned)
โโโ examples/ # Usage examples
โโโ docs/ # Documentation
โโโ scripts/ # Build and deployment scripts
Design Principles
- ๐ง Modular Design - Each server is a separate crate with focused functionality
- โก High Performance - Built with Rust for speed and safety
- ๐ก๏ธ Robust Error Handling - Comprehensive error messages and graceful failures
- ๐ Rich Documentation - Extensive docs and examples for each server
- ๐งช Comprehensive Testing - Unit, integration, and end-to-end tests
- ๐ Consistent APIs - Standardized patterns across all servers
๐ฏ Roadmap
Phase 1: Core Servers โ
- Time MCP Server - Timezone operations and time conversion
- Filesystem MCP Server - Secure file operations, search, and management
Phase 2: System Integration ๐ง
- System MCP Server - System monitoring, process management, and info
Phase 3: Data & Web ๐
- Database MCP Server - SQL queries, schema inspection, and data operations
- Web MCP Server - HTTP requests, web scraping, and API interactions
Phase 4: Advanced Features ๐ฎ
- AI MCP Server - Integration with AI models and embeddings
- Network MCP Server - Network diagnostics and monitoring
- Security MCP Server - Security scanning and analysis tools
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
-
Clone and Setup
git clone https://github.com/sabry-awad97/rust-mcp-servers.git cd rust-mcp-servers -
Install Dependencies
# Install Rust toolchain rustup update stable # Install development tools cargo install cargo-watch cargo-tarpaulin -
Development Workflow
# Run tests with watch cargo watch -x test # Check code quality cargo clippy -- -D warnings cargo fmt --check # Generate coverage report cargo tarpaulin --out html
Adding a New MCP Server
- Create a new crate in
crates/your_server_mcp/ - Follow the established patterns from
time_mcp - Implement the required MCP interfaces
- Add comprehensive tests and documentation
- Update this README with your server information
๐ Documentation
- MCP Specification - Official MCP documentation
- RMCP Framework - Rust MCP implementation docs
- Individual Server Docs - Detailed documentation for each server
๐งช Testing
# Run all tests
cargo test
# Run tests for specific server
cargo test --package mcp-server-time
cargo test --package mcp-server-filesystem
# Run with coverage
cargo tarpaulin --workspace
# Integration tests
cargo test --test integration
๐ Performance
All servers are built with performance in mind:
- Memory Efficient - Minimal memory footprint
- Fast Startup - Quick initialization times
- Concurrent - Async/await for high concurrency
- Resource Aware - Proper resource management and cleanup
๐ Security
- Input Validation - All inputs are validated and sanitized
- Error Handling - No sensitive information in error messages
- Dependencies - Regular security audits with
cargo audit - Best Practices - Following Rust security guidelines
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Model Context Protocol - For the excellent protocol specification
- RMCP - Rust MCP implementation framework
- Rust Community - For the amazing ecosystem and tools
๐ Support & Community
- ๐ Documentation: docs.rs/mcp-server-*
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- ๐ง Contact: dr.sabry1997@gmail.com
๐ Star History
Making AI assistants more powerful, one server at a time
