The Strands Agent MCP server enables you to:
List all available Strands agents registered with the server
Execute a specific Strands agent by providing its name and a text prompt
Integrates with Amazon Q, allowing for execution of Strands agents through Amazon Q's interface. Users can list available agents and execute them through commands in the Amazon Q chat.
Strands Agent MCP
A Model Context Protocol (MCP) server for executing Strands agents. This project provides a simple way to integrate Strands agents with Amazon Q and other MCP-compatible systems.
Overview
Strands Agent MCP is a bridge between the Strands agent framework and the Model Context Protocol (MCP). It allows you to:
Register Strands agents as MCP tools
Execute Strands agents through MCP
Discover and list available agents
The project uses a plugin architecture that makes it easy to add new agents without modifying the core code.
Related MCP server: Elasticsearch MCP Server
Installation
Usage
Starting the MCP Server
This will start the MCP server on the default port.
Creating Agent Plugins
To create a new agent plugin, create a Python package with a name that starts with sap_mcp_plugin_ (sap stands for strands agent plugin). Your package should implement a register_plugin function that registers one or more agents with the provided registry:
Using with Amazon Q
Once the MCP server is running, you can use the agents with Amazon Q:
Then you can use the following commands in your chat:
List available agents:
strands___list_agentsExecute an agent:
strands___execute_agentwith parametersagent(agent name) andprompt(the prompt to send to the agent)
Architecture
The project consists of three main components:
Server: The MCP server that exposes the agent execution API
Registry: A simple registry for managing available agents
Plugins: Dynamically discovered modules that register agents with the registry
The server automatically discovers all installed plugins that follow the naming convention and registers their agents.
Dependencies
fastmcp: For implementing the MCP serverstrands-agents: The core Strands agent frameworkstrands-agents-builder: Tools for building Strands agentsstrands-agents-tools: Additional tools for Strands agents
Development
To set up a development environment:
Clone the repository
Create a virtual environment:
python -m venv .venvActivate the virtual environment:
source .venv/bin/activate(Linux/Mac) or.venv\Scripts\activate(Windows)Install development dependencies:
pip install -e ".[dev]"
Creating a Test Plugin
The repository includes a sample plugin (sap_mcp_plugin_test) that demonstrates how to create and register a simple agent called "simple-agent":
License
[Add license information here]