Skip to main content
Glama

Strands Agent MCP

by imgaray

ストランドエージェントMCP

Strandsエージェントを実行するためのモデルコンテキストプロトコル(MCP)サーバー。このプロジェクトは、StrandsエージェントをAmazon Qやその他のMCP互換システムと簡単に統合する方法を提供します。

概要

Strands Agent MCPは、Strandsエージェントフレームワークとモデルコンテキストプロトコル(MCP)間のブリッジです。これにより、以下のことが可能になります。

  • StrandsエージェントをMCPツールとして登録する
  • MCP を通じて Strands エージェントを実行する
  • 利用可能なエージェントの検出とリスト

このプロジェクトでは、コアコードを変更せずに新しいエージェントを簡単に追加できるプラグイン アーキテクチャを使用しています。

インストール

pip install strands-agent-mcp

使用法

MCPサーバーの起動

strands-agent-mcp

これにより、デフォルトのポートで MCP サーバーが起動します。

エージェントプラグインの作成

新しいエージェントプラグインを作成するには、名前がsap_mcp_plugin_で始まる Python パッケージを作成します (sap は strands agent plugin の略です)。パッケージには、指定されたレジストリに 1 つ以上のエージェントを登録するregister_plugin関数を実装する必要があります。

from strands import Agent from strands.models import BedrockModel from strands_agent_mcp.registry import Registry def register_plugin(registry: Registry) -> None: registry.register("my-agent", Agent( model=BedrockModel(boto_session=Session(region_name="us-west-2"))) )

Amazon Qでの使用

MCP サーバーが実行される場合は、Amazon Q でエージェントを使用できます。

q chat --mcp-server http://localhost:8000

その後、チャットで次のコマンドを使用できます。

  • 利用可能なエージェントの一覧: strands___list_agents
  • エージェントを実行します: strands___execute_agentパラメータagent (エージェント名) とprompt (エージェントに送信するプロンプト)

建築

このプロジェクトは、次の 3 つの主要コンポーネントで構成されています。

  1. サーバー: エージェント実行APIを公開するMCPサーバー
  2. レジストリ: 利用可能なエージェントを管理するためのシンプルなレジストリ
  3. プラグイン: エージェントをレジストリに登録する動的に検出されたモジュール

サーバーは、命名規則に従うすべてのインストール済みプラグインを自動的に検出し、そのエージェントを登録します。

依存関係

  • fastmcp : MCPサーバーの実装用
  • strands-agents : Strands エージェント フレームワークのコア
  • strands-agents-builder : Strandsエージェントを構築するためのツール
  • strands-agents-tools : Strandsエージェント用の追加ツール

発達

開発環境をセットアップするには:

  1. リポジトリをクローンする
  2. 仮想環境を作成する: python -m venv .venv
  3. 仮想環境をアクティブ化します: source .venv/bin/activate (Linux/Mac) または.venv\Scripts\activate (Windows)
  4. 開発依存関係をインストールします: pip install -e ".[dev]"

テストプラグインの作成

リポジトリには、「simple-agent」という単純なエージェントを作成して登録する方法を示すサンプル プラグイン ( sap_mcp_plugin_test ) が含まれています。

from boto3 import Session from strands import Agent from strands.models import BedrockModel from strands_agent_mcp.registry import Registry def register_plugin(registry: Registry) -> None: registry.register("simple-agent", Agent( model=BedrockModel(boto_session=Session(region_name="us-west-2"))) )

ライセンス

[ここにライセンス情報を追加]

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

プラグインアーキテクチャを通じて Strands エージェントと Amazon Q およびその他の MCP 互換システムの統合を可能にするモデルコンテキストプロトコル (MCP) サーバー。

  1. 概要
    1. インストール
      1. 使用法
        1. MCPサーバーの起動
        2. エージェントプラグインの作成
        3. Amazon Qでの使用
      2. 建築
        1. 依存関係
          1. 発達
            1. テストプラグインの作成
              1. ライセンス

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol (MCP) server implementation for interacting with Phabricator API. This server allows LLMs to interact with Phabricator through a standardized interface.
                  Last updated -
                  5
                  Python
                • Amazon Web Services
                  aws-mcp

                  A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your AWS environment. This allows for natural language querying and management of your AWS resources during conversations. Think of better Amazon Q alternative.
                  Last updated -
                  3
                  264
                  TypeScript
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol (MCP) server implementation that provides EMQX MQTT broker interaction.
                  Last updated -
                  4
                  10
                  Python
                  Apache 2.0
                  • Apple
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.
                  Last updated -
                  2

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/imgaray/strands-agents-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server