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ライセンス
参考文献
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
- -securityAlicense-qualityA Model Context Protocol server that enables Claude to execute Python code using boto3 to query and manage AWS resources directly from conversations.Last updated -17PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server enabling AI assistants to directly interact with infrastructure tools like Ansible and Terraform for executing playbooks, managing cloud resources, and performing other infrastructure operations.Last updated -1812TypeScriptMIT License
- -securityFlicense-qualityA web application that enables users to interact with AWS Bedrock language models through a modern interface with support for multiple models like Claude 3, Titan, and Llama 2.Last updated -Python
- -securityAlicense-qualityA tool that helps users easily register Anthropic's Model Context Protocol in Claude Desktop and Cursor, providing ready-made MCP tools for RAG, web search, and Dify integrations.Last updated -PythonMIT License