MCP.so
登录

Sample Building MCP Servers With Rust

@aws-samples

基本信息

分类

其他

许可证

MIT-0

传输方式

stdio

作者

aws-samples

关于 Sample Building MCP Servers With Rust

This project provides sample MCP servers that can be used with Amazon Q CLI or other MCP-compatible AI assistants

#generative-ai#mcp-server#amazon-q-developer

Sample Building MCP Servers With Rust 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Sample Building MCP Servers With Rust 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Sample Building Mcp Servers With Rust?

Sample Building Mcp Servers With Rust is a Rust implementation of Model Context Protocol (MCP) servers that extend AI assistant capabilities. It provides multiple server binaries—Calculator, RDS, S3, and PostgreSQL—designed to be used with Amazon Q or other MCP‑compatible AI assistants.

How to use Sample Building Mcp Servers With Rust?

Ensure Rust/Cargo, AWS credentials (for RDS/S3), and an MCP‑compatible assistant are installed. Clone the repository and run cargo build --release --bin <server_name> for each server. Run the built binaries directly or integrate them with Amazon Q CLI by adding a configuration block to your .amazon-q.json file, specifying the command path and arguments for each server.

Key features of Sample Building Mcp Servers With Rust

  • Four built‑in MCP servers: Calculator, RDS, S3, and PostgreSQL
  • Calculator server performs basic arithmetic (addition, subtraction)
  • RDS server lists and manages Amazon RDS instances per region
  • S3 server manages buckets and objects, listing by region
  • PostgreSQL server executes read‑only queries and lists tables/schemas
  • All servers use the rmcp Rust library for MCP protocol implementation
  • Integrates with Amazon Q CLI via JSON configuration

Use cases of Sample Building Mcp Servers With Rust

  • Extend an AI assistant with basic arithmetic capabilities
  • Manage Amazon RDS instances through a conversational interface
  • List and organize S3 buckets and objects by region
  • Query PostgreSQL databases (read‑only) and retrieve schema information

常见问题

1

What dependencies does this project use?

It depends on the rmcp Rust MCP implementation, AWS SDK for Rust (`aws-sdk-s3`, `aws-sdk-rds`, `aws-config`), Tokio for async runtime, Serde for serialization, and `tokio-postgres` for PostgreSQL connectivity.

2

What kind of authentication is required?

For RDS and S3 servers, valid AWS credentials must be configured. The PostgreSQL server requires a connection string with username and password.

3

Are the PostgreSQL queries read‑only?

Yes, the PostgreSQL server is designed to execute only read‑only queries. It can list tables and provide schema information but does not support write operations.

4

How do I integrate these servers with Amazon Q?

Add an `mcpServers` block to your `.amazon-q.json` file, listing each server with the absolute path to its binary and any required arguments (e.g., a PostgreSQL connection string).

5

What transports do these MCP servers support?

The README does not specify the transport protocol used; it only mentions the MCP standard and integration via command‑line invocation with Amazon Q CLI.

评论

其他 分类下的更多 MCP 服务器