strands-mcp
Scrapes and indexes Strands Agents documentation into Elasticsearch, providing a searchable MCP server for Amazon Q and other AI assistants.
README
Strands Agents MCP Server for Amazon Q
This project provides an MCP (Model Context Protocol) server that scrapes the Strands Agents documentation and indexes it in Elasticsearch, making it searchable for Amazon Q Developer.
Architecture
- Documentation Scraper: Python script that crawls the Strands Agents documentation (v1.1.x)
- Elasticsearch Index: Stores scraped documentation with full-text search capabilities
- MCP Server: Provides Amazon Q with access to the indexed documentation
- Docker Compose: Orchestrates all services
Components
scraper/- Documentation scraping logicmcp_server/- MCP server implementationelasticsearch/- Elasticsearch configurationdocker-compose.yml- Service orchestration
Quick Start
Option 1: FastMCP Web Server (Recommended)
This project now supports web-accessible MCP via FastMCP:
# Install UV if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Start Elasticsearch
docker-compose up -d elasticsearch
# Run scraper to populate data
uv run scraper
# Start web-accessible MCP server
uv run fastmcp-server
Server Access:
- MCP Endpoint:
http://localhost:8000/mcp/ - For AI Clients: Connect any MCP-compatible client
- For Developers: Use FastMCP Client library
UV Commands:
uv sync # Install/update dependencies
uv run scraper # Run scraper directly
uv run fastmcp-server # Run web MCP server
uv run mcp-server # Run local MCP server (stdin/stdout)
uv add <package> # Add new dependency
uv remove <package> # Remove dependency
Option 2: Using Pre-indexed Data (Docker)
The docker/ directory contains a Docker Compose setup with pre-indexed Strands documentation:
# Navigate to the docker directory
cd docker/
# Start all services (Elasticsearch, Kibana, and data restoration)
docker-compose up -d
# Wait for services to start (about 30-60 seconds)
# Check status
docker-compose ps
# Elasticsearch will be available on port 9200
# Kibana GUI will be available on port 5601
This setup includes:
- Elasticsearch with pre-indexed Strands documentation
- Kibana for data visualization and exploration
- Automatic data restoration from
es-data.tar.gz
Option 3: Traditional Setup (Root Directory)
For a fresh setup without pre-indexed data using traditional Python:
# Start Elasticsearch and Kibana (from root directory)
docker-compose up -d
# Then run the scraper to index documentation
python scraper/main.py
Running the Scraper Locally
Using pip
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromium
# Run the scraper to index documentation
python scraper/main.py
Using uv
# Install dependencies
uv sync
# Install Playwright browsers
uv run playwright install chromium
# Run the scraper to index documentation
uv run python scraper/main.py
Running the MCP Server Locally
# Run the MCP server
python mcp_server/main.py
# The MCP server will be available on port 8000
Configuration
- Elasticsearch index:
strands-agents-docs - MCP server port: 8000
- Kibana GUI port: 5601
- Documentation source: https://strandsagents.com/latest/documentation/docs/
Viewing Data with Kibana
Kibana provides a web-based GUI for exploring and visualizing your Elasticsearch data:
- Access Kibana: Open http://localhost:5601 in your browser (no login required)
- Create Index Pattern:
- Go to Stack Management → Index Patterns
- Create a new index pattern with
strands-agents-docs - Select
@timestampas the time field if available
- Explore Data:
- Use Discover to browse and search through scraped documentation
- Use Dashboard to create visualizations of your data
- Use Dev Tools to run Elasticsearch queries directly
Quick Data Exploration
- Discover Tab: View all indexed documents with full-text search
- Search: Use the search bar to find specific documentation content
- Filters: Apply filters to narrow down results by fields
- Time Range: Adjust time range to see when documents were indexed
Usage with Amazon Q
Configure Amazon Q to use this MCP server by adding the server endpoint to your MCP configuration. See AMAZON_Q_INTEGRATION.md for detailed instructions.
Usage with Windsurf
Integrate with Windsurf IDE for enhanced development experience with Strands Agents documentation. See WINDSURF_INTEGRATION.md for setup instructions.
Quick Windsurf Setup
# Copy the configuration file
cp windsurf-mcp-config.json ~/.windsurf/mcp-servers.json
# Restart Windsurf to load the MCP server
Development
Using pip
# Install dependencies
pip install -r requirements.txt
# Run scraper manually
ELASTICSEARCH_URL=http://localhost:9200 python scraper/main.py
# Run MCP server manually
ELASTICSEARCH_URL=http://localhost:9200 python mcp_server/main.py
# Run standalone (Python + Docker Elasticsearch)
python run_standalone.py
# Test the setup
python test_setup.py
Using uv
# Install dependencies
uv sync
# Run scraper manually
ELASTICSEARCH_URL=http://localhost:9200 uv run python scraper/main.py
# Run MCP server manually
ELASTICSEARCH_URL=http://localhost:9200 uv run python mcp_server/main.py
# Run standalone (Python + Docker Elasticsearch)
uv run python run_standalone.py
# Test the setup
uv run python test_setup.py
Integration Options
- Amazon Q Developer - See
AMAZON_Q_INTEGRATION.md - Windsurf IDE - See
WINDSURF_INTEGRATION.md - Custom MCP Client - Use the MCP server directly via stdio protocol
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。