Skip to main content
Glama

AWS Bedrock 上の MCP

Anthropic MCP (AWS Bedrock 上) の実装と理解のためのシンプルで明確な例。

複数のMCPサーバの管理については、この小さなプロジェクトQ-2001が参考になるかもしれません。

概要

このプロジェクトは、AWS Bedrock で Anthropic の Model Context Protocol (MCP) を実装して使用する方法を示します。AWS Bedrock のランタイムサービスを介して MCP 対応ツールとやり取りできるクライアント実装を提供します。

Related MCP server: AWS MCP Server

2025年5月10日更新: ストリーミング可能なHTTP

  • ストリーミング可能なHTTPのサポートを追加

  • さまざまなトランスポートタイプを示すURLフェッチMCPサーバーfetch_url_mcp_server.pyを書き直す

使用方法

デフォルトの stdio 設定 (トランスポート パラメータなし) でサーバーを実行します。

uv run fetch_url_mcp_server.py

# client
uv run client_stdio.py

デフォルト ポート (8000) で streamable-http トランスポートを使用して実行します。

python fetch_url_mcp_server.py --transport streamable-http

# client
uv run client_streamablehttp.py

カスタム ポートで streamable-http トランスポートを使用して実行します。

python fetch_url_mcp_server.py --transport streamable-http --port 8080

前提条件

  • Python 3.10以上

  • Bedrock にアクセスできる AWS アカウント

  • 設定されたAWS認証情報

  • UV パッケージ マネージャー

特徴

  • Converse API を使用した AWS Bedrock ランタイムとのシームレスな統合

  • Bedrock との互換性のためのツール形式の変換

  • 非同期通信処理

  • デバッグのための構造化ログ

貢献

実装を改善するために、お気軽に問題やプル リクエストを送信してください。

ライセンス

MITライセンス

参考文献

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Implements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.
      1
      153
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with AWS services (EC2, S3, Lambda, DynamoDB, etc.) through the Model Context Protocol, allowing natural language management of cloud resources.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a standardized interface for interacting with Rocketlane's tools and services through the Model Context Protocol, enabling unified API access.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a standardized interface for interacting with Falai's tools and services through the Model Context Protocol, enabling AI assistants to leverage Falai capabilities.
      2
      MIT