Integrating C# Model Context Protocol servers with Amazon Q Developer CLI
.NET on AWS Blog
This article details how to create a Model Context Protocol (MCP) server with C# and .NET, integrated with Amazon Q Developer CLI. The key points include:
- MCP allows AI models to safely interact with external tools and resources
- The example builds a weather-focused MCP server with two main tools:
- GetWeatherAlertsForAState
- GetWeatherForecastForALocation
- Uses National Weather Service API to fetch real-time weather data
- Demonstrates how to configure Amazon Q CLI to use custom MCP servers
- Highlights benefits like enterprise integration and cross-platform deployment
The tutorial provides a comprehensive guide for C# developers to extend Amazon Q CLI's capabilities by creating custom contextual tools using the Model Context Protocol.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Jun 13
2025
2025
Use Model Context Protocol with Amazon Q Developer for context-aware IDE workflows
Apr 29
2025
2025
Amazon Q Developer CLI now supports Model Context Protocol (MCP)
Apr 29
2025
2025
Extend the Amazon Q Developer CLI with Model Context Protocol (MCP) for Richer Context
Apr 1
2025
2025
Customizing C# and C++ with Amazon Q Developer
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.