MCP Sample Servers logo

MCP Sample Servers

by aws-samples

A Rust implementation of Model Context Protocol (MCP) servers for extending AI assistant capabilities. These servers provide functionalities like calculator, RDS, S3, and PostgreSQL interactions.

View on GitHub

Last updated: N/A

What is MCP Sample Servers?

This project provides sample MCP servers written in Rust that can be used with Amazon Q or other MCP-compatible AI assistants to extend their capabilities. It includes servers for performing calculations, interacting with RDS and S3, and querying PostgreSQL databases.

How to use MCP Sample Servers?

Clone the repository, build the project using cargo build, and then build each server executable individually. Run each server independently. Integrate with Amazon Q CLI by adding a configuration to your .amazon-q.json file, specifying the command and arguments for each server.

Key features of MCP Sample Servers

  • 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.

  • Written in Rust for performance and reliability.

  • Uses Model Context Protocol (MCP) for AI assistant integration.

Use cases of MCP Sample Servers

  • Extending Amazon Q's capabilities with custom functionalities.

  • Providing AI assistants with access to cloud resources like RDS and S3.

  • Enabling AI assistants to perform calculations and data analysis.

  • Integrating AI assistants with PostgreSQL databases for data retrieval.

FAQ from MCP Sample Servers

What is MCP?

Model Context Protocol is a protocol for extending AI assistant capabilities.

What languages are supported?

This sample uses Rust.

What AWS services are supported?

Amazon RDS and S3 are supported.

Do I need AWS credentials?

Yes, AWS credentials configured for RDS and S3 operations are required.

How do I integrate with Amazon Q?

Add a configuration to your .amazon-q.json file, specifying the command and arguments for each server.