| Crates.io | mcp_rust_examples |
| lib.rs | mcp_rust_examples |
| version | 0.1.0 |
| created_at | 2025-06-03 17:02:16.438721+00 |
| updated_at | 2025-06-03 17:02:16.438721+00 |
| description | Complete educational resource for learning MCP (Model Context Protocol) development with Rust - 20 comprehensive examples from beginner to enterprise level |
| homepage | https://rustsandbox.github.io/MCP-Development-with-Rust/ |
| repository | https://github.com/RustSandbox/MCP-Development-with-Rust |
| max_upload_size | |
| id | 1699307 |
| size | 712,602 |
██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ █████╗ ██████╗
██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██╔══██╗██╔══██╗
██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ███████║██████╔╝
██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║██║ ██╔══██║██╔══██╗
██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝███████╗██║ ██║██████╔╝
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
Advanced Technology Solutions Worldwide
This comprehensive learning resource provides two complete tutorials for mastering Model Context Protocol (MCP) development with Rust. From beginner-friendly introductions to production-ready enterprise applications, these tutorials guide you through every aspect of building robust MCP servers.
Published by: Remolab - Advanced Technology Solutions
Author: Hamze Ghalebi, CTO at Remolab
Experience: 20+ years in Rust programming and international software education
We've created two distinct learning paths to serve different audiences and learning preferences:
File: mcp_rust_tutorial.md
Perfect for:
Key Features:
Example Projects Include:
File: mcp_rust_tutorial_international.md
Perfect for:
Key Features:
Learning Journey:
📚 Foundation (30 minutes) → Core concepts and setup
🏗️ Basic Practice (2 hours) → First working MCP server
⚙️ Intermediate (3 hours) → Real-world applications
🚀 Advanced (4 hours) → Production-grade systems
🌍 Deployment (1 hour) → Global deployment strategies
Option 1: Install from crates.io (Recommended)
# Add as dependency in your Cargo.toml
[dependencies]
mcp_rust_examples = "0.1.0"
# Or install binaries globally
cargo install mcp_rust_examples
# Run examples directly
example_01_hello_world
example_02_calculator
Option 2: Clone and Build (Development)
# Clone the repository
git clone https://github.com/RustSandbox/MCP-Development-with-Rust
cd MCP-Development-with-Rust
# Run any of the 20 working examples
cargo run --bin example_01_hello_world
cargo run --bin example_13_auth_service
cargo run --bin example_20_enterprise_server
# Follow the technical reference guide
open mcp_rust_tutorial.md
Option 3: Learning-Oriented Approach
# Start with the international teaching guide
open mcp_rust_tutorial_international.md
# Follow the structured learning path
cargo new mcp_learning_project
cd mcp_learning_project
# Continue with Chapter 2 of the international guide
mcp-rust-tutorial/
├── 📚 Learning Materials
│ ├── mcp_rust_tutorial.md # Technical Reference Version
│ ├── mcp_rust_tutorial_international.md # International Teaching Version
│ └── README.md # This overview
│
├── 🛠️ Working Examples (20 Complete Projects)
│ ├── src/examples/
│ │ ├── example_01_hello_world.rs # Basic MCP server
│ │ ├── example_02_calculator.rs # Error handling patterns
│ │ ├── example_05_resource_provider.rs # MCP resources
│ │ ├── example_09_database.rs # Database integration
│ │ ├── example_12_task_queue.rs # Async programming
│ │ ├── example_13_auth_service.rs # Authentication systems
│ │ └── example_20_enterprise_server.rs # Complete enterprise app
│ │
├── ⚙️ Development Tools
│ ├── justfile # 50+ development commands
│ ├── .github/workflows/ # Complete CI/CD pipeline
│ ├── Cargo.toml # Dependencies and configuration
│ └── Cargo.lock # Locked dependency versions
│
└── 📖 Documentation
├── docs/ # Additional documentation
└── examples/ # Usage examples
🔧 MCP Protocol Fundamentals
🦀 Advanced Rust Programming
🏭 Production-Ready Development
🌍 International Best Practices
| Feature | Technical Reference | International Teaching |
|---|---|---|
| Target Audience | Experienced Developers | Global Learners |
| Language Style | Technical, Precise | Clear, Accessible |
| Code Examples | 20 Complete Projects | Step-by-Step Builds |
| External Resources | 130+ Links | Curated Global Resources |
| Learning Structure | Reference-Based | Structured Progression |
| Time Investment | Self-Paced | 11 Hours Total |
| Prerequisites | Rust Knowledge | Beginner-Friendly |
| Use Case | Production Implementation | Learning & Education |
This crate provides educational Rust examples for MCP development:
Simple Installation:
[dependencies]
mcp_rust_examples = "0.1.0" # Educational examples with all dependencies
Global Binary Installation:
# Install all example binaries globally
cargo install mcp_rust_examples
# Run any example
example_01_hello_world
example_13_auth_service
example_20_enterprise_server
Development Setup:
# For development and extending examples
git clone https://github.com/RustSandbox/MCP-Development-with-Rust
cd MCP-Development-with-Rust
cargo build --all
# Run examples locally
cargo run --bin example_01_hello_world
Note: For full MCP SDK integration in your own projects, see the official rmcp documentation.
We provide a comprehensive development environment with 50+ commands via just:
# Quick development
just run example_01 # Run specific example
just test # Run all tests
just quality # Code formatting and linting
# Learning and exploration
just demo # Run all demos
just docs # Generate documentation
just examples # List all available examples
# Production readiness
just build-release # Optimized builds
just security-audit # Security vulnerability scan
just benchmark # Performance benchmarking
Hamze Ghalebi's Teaching Approach:
With over 20 years of experience teaching Rust to international audiences, this resource embodies proven educational principles:
International Accessibility:
Remolab is a leading technology company specializing in advanced software solutions and international developer education. Our mission is to make cutting-edge technology accessible to developers worldwide.
Our Focus Areas:
Global Reach: Serving clients and students across 40+ countries with culturally-sensitive, technically excellent solutions.
Hamze Ghalebi
Chief Technology Officer, Remolab
Connect:
This project uses automated publishing to crates.io via GitHub Actions:
Automated Release Process:
git tag v0.1.0 && git push origin v0.1.0examples-only featureRelease Workflow:
Version Management:
# Create a new release
git tag v0.2.0
git push origin v0.2.0
# The workflow automatically:
# 1. Builds binaries for all platforms
# 2. Publishes to crates.io
# 3. Creates GitHub release with assets
# 4. Generates checksums for verification
We welcome contributions from the global community! This project thrives on diverse perspectives and experiences.
For Technical Improvements:
For Educational Content:
For International Accessibility:
We maintain a welcoming, inclusive environment for all contributors, regardless of:
This educational resource is released under the MIT License, promoting global accessibility and educational use.
You are free to:
We ask that you:
For Learning Support:
Special thanks to the global Rust and MCP communities whose feedback, contributions, and diverse perspectives have shaped this learning resource. This tutorial exists because of the collaborative spirit of developers worldwide who believe in accessible, high-quality education.
International Contributors:
Technical Contributors:
Ready to start learning? Choose your path and begin building amazing MCP applications with Rust! 🚀
Start with Technical Reference →
Start with International Guide →