Strands Agent MCP
Strands Агент MCP
Сервер Model Context Protocol (MCP) для выполнения агентов Strands. Этот проект предоставляет простой способ интеграции агентов Strands с Amazon Q и другими MCP-совместимыми системами.
Обзор
Strands Agent MCP — это мост между фреймворком Strands Agent и Model Context Protocol (MCP). Он позволяет:
Регистрация агентов Strands в качестве инструментов MCP
Выполнение агентов Strands через MCP
Найдите и перечислите доступных агентов
Проект использует архитектуру плагинов, которая позволяет легко добавлять новых агентов без изменения основного кода.
Related MCP server: A2A Client MCP Server
Установка
pip install strands-agent-mcpИспользование
Запуск MCP-сервера
strands-agent-mcpЭто запустит сервер MCP на порту по умолчанию.
Создание плагинов агента
Чтобы создать новый плагин агента, создайте пакет Python с именем, начинающимся с sap_mcp_plugin_ (sap означает плагин агента strands). Ваш пакет должен реализовать функцию 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(приглашение для отправки агенту)
Архитектура
Проект состоит из трех основных компонентов:
Сервер : сервер MCP, предоставляющий API выполнения агента.
Реестр : простой реестр для управления доступными агентами.
Плагины : динамически обнаруживаемые модули, которые регистрируют агентов в реестре.
Сервер автоматически обнаруживает все установленные плагины, соответствующие соглашению об именовании, и регистрирует их агентов.
Зависимости
fastmcp: Для реализации сервера MCPstrands-agents: Основная структура агента Strandsstrands-agents-builder: Инструменты для создания агентов Strandsstrands-agents-tools: Дополнительные инструменты для агентов Strands
Разработка
Чтобы настроить среду разработки:
Клонировать репозиторий
Создать виртуальную среду:
python -m venv .venvАктивируйте виртуальную среду:
source .venv/bin/activate(Linux/Mac) или.venv\Scripts\activate(Windows)Установка зависимостей разработки:
pip install -e ".[dev]"
Создание тестового плагина
Репозиторий включает в себя пример плагина ( sap_mcp_plugin_test ), который демонстрирует, как создать и зарегистрировать простой агент под названием «simple-agent»:
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")))
)Лицензия
[Добавьте сюда информацию о лицензии]
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.410
- FlicenseAqualityDmaintenanceAn MCP server that enables LLMs to interact with Agent-to-Agent (A2A) protocol compatible agents, allowing for sending messages, tracking tasks, and receiving streaming responses.528
- FlicenseBqualityDmaintenanceA Model Context Protocol server implementation that can be run directly or through Docker, enabling AI assistants to interact with external systems through the MCP standard.2
- Alicense-qualityFmaintenanceA Model Context Protocol (MCP) server that enables multiple AI agents to share memory, coordinate tasks, and collaborate effectively across IDEs and CLI tools.1214MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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