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.
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_agents
- Execute an agent:
strands___execute_agent
with 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 .venv
- Activate 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]
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.
A Model Context Protocol (MCP) server that enables integration of Strands agents with Amazon Q and other MCP-compatible systems through a plugin architecture.
Related MCP Servers
- -securityFlicense-qualityA 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 -5Python
- AsecurityFlicenseAqualityA 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 -3264TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server implementation that provides EMQX MQTT broker interaction.Last updated -410PythonApache 2.0
- AsecurityFlicenseAqualityA 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 -2137JavaScript