AWS Bedrock 上の MCP
Anthropic MCP (AWS Bedrock 上) の実装と理解のためのシンプルで明確な例。
複数のMCPサーバの管理については、この小さなプロジェクトQ-2001が参考になるかもしれません。
概要
このプロジェクトは、AWS Bedrock で Anthropic の Model Context Protocol (MCP) を実装して使用する方法を示します。AWS Bedrock のランタイムサービスを介して MCP 対応ツールとやり取りできるクライアント実装を提供します。
2025年5月10日更新: ストリーミング可能なHTTP
- ストリーミング可能なHTTPのサポートを追加
- さまざまなトランスポートタイプを示すURLフェッチMCPサーバー
fetch_url_mcp_server.py
を書き直す
使用方法
デフォルトの stdio 設定 (トランスポート パラメータなし) でサーバーを実行します。
デフォルト ポート (8000) で streamable-http トランスポートを使用して実行します。
カスタム ポートで streamable-http トランスポートを使用して実行します。
前提条件
- Python 3.10以上
- Bedrock にアクセスできる AWS アカウント
- 設定されたAWS認証情報
- UV パッケージ マネージャー
特徴
- Converse API を使用した AWS Bedrock ランタイムとのシームレスな統合
- Bedrock との互換性のためのツール形式の変換
- 非同期通信処理
- デバッグのための構造化ログ
貢献
実装を改善するために、お気軽に問題やプル リクエストを送信してください。
ライセンス
MITライセンス
参考文献
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
シームレスなツール統合と通信を実現する Anthropic のモデルコンテキストプロトコルを実装することで、AWS Bedrock 対応ツールとのやり取りを容易にします。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP server that provides tools for interacting with AWS S3 buckets, enabling direct access to S3 operations through the Model Context Protocol.Last updated -1Python
- -securityFlicense-qualityA Model Context Protocol server that integrates with AWS CodePipeline, allowing users to manage pipelines through Windsurf and Cascade using natural language commands.Last updated -4TypeScript
- -securityFlicense-qualityA Model Context Protocol server implementation that connects to AWS Cognito for authentication and user management, providing tools for user flows including sign-up, sign-in, and password management.Last updated -JavaScript
- -securityFlicense-qualityA Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.Last updated -TypeScript