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.
- 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
scraper/
- Documentation scraping logicmcp_server/
- MCP server implementationelasticsearch/
- Elasticsearch configurationdocker-compose.yml
- Service orchestration
# Start Elasticsearch and Kibana
docker-compose up -d
# Elasticsearch will be available on port 9200
# Kibana GUI will be available on port 5601
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromium
# Run the scraper to index documentation
python scraper/main.py
# Run the MCP server
python mcp_server/main.py
# The MCP server will be available on port 8000
- Elasticsearch index:
strands-agents-docs
- MCP server port: 8000
- Kibana GUI port: 5601
- Documentation source: https://strandsagents.com/latest/documentation/docs/
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
@timestamp
as 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
- 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
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.
Integrate with Windsurf IDE for enhanced development experience with Strands Agents documentation. See WINDSURF_INTEGRATION.md
for setup instructions.
# Copy the configuration file
cp windsurf-mcp-config.json ~/.windsurf/mcp-servers.json
# Restart Windsurf to load the MCP server
# 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
- 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