This project provides sample MCP servers that can be used with Amazon Q CLI or other MCP-compatible AI assistants
{
"mcpServers": {
"s3": {
"args": [],
"command": "/path/to/mcp-sample-servers-rust/target/release/s3_server"
},
"rds": {
"args": [],
"command": "/path/to/mcp-sample-servers-rust/target/release/rds_server"
},
"postgres": {
"args": [
"postgresql://username:password@hostname:port/database"
],
"command": "/path/to/mcp-sample-servers-rust/target/release/postgresql_server"
},
"calculator": {
"args": [],
"command": "/path/to/mcp-sample-servers-rust/target/release/calculator_server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This project provides sample MCP servers that can be used with Amazon Q CLI or other MCP-compatible AI assistants
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT-0. View license →
Is it maintained?
Last commit 64 days ago. 8 stars.
Will it work with my client?
Transport: stdio, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No known vulnerabilities.
No automated test available for this server. Check the GitHub README for setup instructions.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for Sample Building Mcp Servers With Rust and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Rust implementation of Model Context Protocol (MCP) servers for extending AI assistant capabilities.
This project provides sample MCP servers that can be used with Amazon Q or other MCP-compatible AI assistants. The servers implement various functionalities:
Clone the repository and build the project:
git clone <repository-url>
cd mcp-sample
cargo build
Build the executable files for each server:
# Build the calculator server
cargo build --release --bin calculator_server
# Build the RDS server
cargo build --release --bin rds_server
# Build the S3 server
cargo build --release --bin s3_server
# Build the PostgreSQL server
cargo build --release --bin postgresql_server
After building, you can run each server independently:
# Run the calculator server
./target/release/calculator_server
# Run the RDS server
./target/release/rds_server
# Run the S3 server
./target/release/s3_server
# Run the PostgreSQL server (requires a connection string)
./target/release/postgresql_server "postgresql://username:password@hostname:port/database"
To integrate these MCP servers with Amazon Q CLI or other MCP-compatible clients, add a configuration like this to your .amazon-q.json file:
{
"mcpServers": {
"calculator": {
"command": "/path/to/mcp-sample-servers-rust/target/release/calculator_server",
"args": []
},
"s3": {
"command": "/path/to/mcp-sample-servers-rust/target/release/s3_server",
"args": []
},
"rds": {
"command": "/path/to/mcp-sample-servers-rust/target/release/rds_server",
"args": []
},
"postgres": {
"command": "/path/to/mcp-sample-servers-rust/target/release/postgresql_server",
"args": ["postgresql://username:password@hostname:port/database"]
}
}
}
Replace /path/to/mcp-sample-servers-rust/ with the actual path to your built binaries. Once configured, Amazon Q will be able to use these servers to extend its capabilities.
Provides basic arithmetic operations like addition and subtraction.
Lists and manages Amazon RDS instances in specified regions.
Manages S3 buckets and objects, including listing buckets by region.
Connects to PostgreSQL databases and executes read-only queries, lists tables, and provides schema information.