Rust sample MCP servers for calculator, RDS, S3, and PostgreSQL

Rust sample MCP servers for calculator, RDS, S3, and PostgreSQL

sample-building-mcp-servers-with-rust•byaws-samples

A collection of sample MCP servers written in Rust, including a calculator server, an Amazon RDS server, an Amazon S3 server, and a PostgreSQL server for use with MCP-compatible AI assistants.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides a calculator server that performs basic arithmetic operations such as addition and subtraction.
  • •Lists and manages Amazon RDS instances in specified regions.
  • •Manages Amazon S3 buckets and objects, including listing buckets by region.
  • •Connects to PostgreSQL databases to execute read-only queries, list tables, and provide schema information.

BEST FOR

  • •Extending AI assistants such as Amazon Q with arithmetic, AWS RDS, AWS S3, and PostgreSQL capabilities.
  • •Running individual database and storage servers for PostgreSQL, Amazon RDS, and Amazon S3 workflows.

ABOUT SAMPLE-BUILDING-MCP-SERVERS-WITH-RUST

Rust sample MCP servers for calculator, RDS, S3, and PostgreSQL is cataloged as an MCP server attributed to aws-samples. A collection of sample MCP servers written in Rust, including a calculator server, an Amazon RDS server, an Amazon S3 server, and a PostgreSQL server for use with MCP-compatible AI assistants. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Rust sample MCP servers for calculator, RDS, S3, and PostgreSQL are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which MCP servers are included in this project?

The project includes a Calculator Server, an RDS Server, an S3 Server, and a PostgreSQL Server.

Can the PostgreSQL server modify database contents?

According to the README, the PostgreSQL server executes read-only queries.

Upstream README

View this exact version on GitHub

README.md · 4b65e9b1cec6 · Fetched 2026-11-13 10:22:26 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Sample

A Rust implementation of Model Context Protocol (MCP) servers for extending AI assistant capabilities.

Overview

This project provides sample MCP servers that can be used with Amazon Q or other MCP-compatible AI assistants. The servers implement various functionalities:

  • Calculator Server: Performs basic arithmetic operations
  • RDS Server: Interacts with Amazon RDS instances
  • S3 Server: Manages Amazon S3 buckets and objects
  • PostgreSQL Server: Connects to PostgreSQL databases and executes queries

Prerequisites

  • Rust and Cargo
  • AWS credentials configured for RDS and S3 operations
  • An MCP-compatible AI assistant (like Amazon Q)

Installation

Clone the repository and build the project:

git clone <repository-url>
cd mcp-sample
cargo build

Usage

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"

Integration with Amazon Q CLI

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.

Server Descriptions

Calculator Server

Provides basic arithmetic operations like addition and subtraction.

RDS Server

Lists and manages Amazon RDS instances in specified regions.

S3 Server

Manages S3 buckets and objects, including listing buckets by region.

PostgreSQL Server

Connects to PostgreSQL databases and executes read-only queries, lists tables, and provides schema information.

Dependencies

  • rmcp: Rust implementation of the Model Context Protocol
  • AWS SDK for Rust (aws-sdk-s3, aws-sdk-rds, aws-config)
  • Tokio for async runtime
  • Serde for serialization/deserialization
  • tokio-postgres for PostgreSQL database connectivity

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Rust sample MCP servers for calculator, RDS, S3, and PostgreSQL from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sample-building-mcp-servers-with-rust)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage