Strands Agents MCP Server
A model-driven approach to building AI agents in just a few lines of code.
Documentation ◆ Samples ◆ Python SDK ◆ Tools ◆ Agent Builder ◆ MCP Server
This MCP server provides curated documentation access to your GenAI tools via llms.txt files, enabling AI coding assistants to find pages by title and retrieve their contents.
Features
- Title-Based Document Search: Weighted TF-IDF ranking over the curated document titles
- Section-Based Browsing: Browse document structure via table of contents, then fetch only the section you need - more token-efficient than retrieving full pages
- Curated Content: Indexes documentation from llms.txt files with clean, human-readable titles
- On-Demand Fetching: Lazy-loads full document content only when needed for optimal performance
- Snippet Generation: Hydrates the top-ranked pages to provide contextual previews
- Real URL Support: Works with actual HTTPS URLs while maintaining backward compatibility
Tool behavior
search_docs(query, k)searches document titles. Use title-like keywords, then callfetch_docto inspect a result's contents.- Search scores are unbounded weighted TF-IDF values. They are useful only for ordering results from the same query; they are not probabilities and should not be compared across queries.
search_docsreturns an empty list when no title matches. If a matched page cannot be fetched for its snippet, the result still includes the URL and title.fetch_docreturns{"error": "...", "url": "..."}for unsupported URLs and failed page fetches. For sectioned documents, unknown section IDs also return an error;sectionis ignored when the full document is returned automatically.
Prerequisites
The usage methods below require uv to be installed on your system. You can install it by following the official installation instructions.
Installation
You can use the Strands Agents MCP server with 40+ applications that support MCP servers, including Amazon Q Developer CLI, Anthropic Claude Code, Cline, and Cursor.
Get started quickly with one-click installation buttons for popular MCP clients. Click the buttons below to install servers directly in your IDE:
Kiro example
See the Kiro documentation for instructions on managing MCP configuration.
In ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"strands-agents": {
"command": "uvx",
"args": ["strands-agents-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "INFO"
},
"disabled": false,
"autoApprove": ["search_docs", "fetch_doc"]
}
}
}
Q Developer CLI example
See the Q Developer CLI documentation for instructions on managing MCP configuration.
In ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"strands-agents": {
"command": "uvx",
"args": ["strands-agents-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "INFO"
},
"disabled": false,
"autoApprove": ["search_docs", "fetch_doc"]
}
}
}
Claude Code example
See the Claude Code documentation for instructions on managing MCP servers.
claude mcp add strands uvx strands-agents-mcp-server
Cline example
See the Cline documentation for instructions on managing MCP configuration.
Provide Cline with the following information:
I want to add the MCP server for Strands Agents.
Here's the GitHub link: @https://github.com/strands-agents/harness-sdk/tree/main/strands-mcp
Can you add it?"
Cursor example
See the Cursor documentation for instructions on managing MCP configuration.
In ~/.cursor/mcp.json:
{
"mcpServers": {
"strands-agents": {
"command": "uvx",
"args": ["strands-agents-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "INFO"
},
"disabled": false,
"autoApprove": ["search_docs", "fetch_doc"]
}
}
}
VS Code example
See the VS Code documentation for instructions on managing MCP configuration.
In your mcp.json file:
{
"servers": {
"strands-agents": {
"command": "uvx",
"args": ["strands-agents-mcp-server"]
}
}
}
Quick Testing
You can quickly test the MCP server using the MCP Inspector:
# For published package
npx @modelcontextprotocol/inspector uvx strands-agents-mcp-server
# For local development
npx @modelcontextprotocol/inspector python -m strands_mcp_server
Note: This requires npx to be installed on your system. It comes bundled with Node.js.
The Inspector is also useful for troubleshooting MCP server issues as it provides detailed connection and protocol information. For an in-depth guide, have a look at the MCP Inspector documentation.
Getting Started
-
Install prerequisites:
- Install uv following the official installation instructions
- Make sure you have Node.js installed for npx commands
-
Configure your MCP client:
- Choose your preferred MCP client from the installation examples above
- Add the Strands Agents MCP server configuration to your client
-
Test the connection:
# For published package npx @modelcontextprotocol/inspector uvx strands-agents-mcp-server # For local development npx @modelcontextprotocol/inspector python -m strands_mcp_server
-
Start using the documentation tools:
search_docs- Find relevant documentation with intelligent rankingfetch_doc- Browse a page's structure and preamble, then read individual sections- The server automatically indexes curated content from llms.txt files
Server Development
git clone https://github.com/strands-agents/harness-sdk.git
cd harness-sdk/strands-mcp
python3 -m venv venv
source venv/bin/activate
pip3 install -e ".[dev]"
npx @modelcontextprotocol/inspector python -m strands_mcp_server
Running Tests
# Unit tests (fast, no network access required)
pytest tests/
# Integration tests (requires network access to strandsagents.com)
pytest tests_integ/ -v
# All tests
pytest tests/ tests_integ/ -v
To skip integration tests (e.g., in CI environments without network access):
SKIP_INTEG_TESTS=1 pytest tests_integ/
Contributing ❤️
We welcome contributions! See our Contributing Guide for details on:
- Reporting bugs & features
- Development setup
- Contributing via Pull Requests
- Code of Conduct
- Reporting of security issues
Stay in touch with the team
Come meet the Strands team and other users on Discord
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Security
See CONTRIBUTING for more information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strands_agents_mcp_server-0.2.8.tar.gz.
File metadata
- Download URL: strands_agents_mcp_server-0.2.8.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60eda707b063ec3ebcd9cf8273f768f0b47c83cb1641cb6a95dfa00ec866908e
|
|
| MD5 |
e880831ea5ba31e3cbdf6fd365d534df
|
|
| BLAKE2b-256 |
f16f612c4580d27b6da928095b85506e5ceb4db398879278b6c4027ab708c704
|
Provenance
The following attestation bundles were made for strands_agents_mcp_server-0.2.8.tar.gz:
Publisher:
release-mcp.yml on strands-agents/harness-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_agents_mcp_server-0.2.8.tar.gz -
Subject digest:
60eda707b063ec3ebcd9cf8273f768f0b47c83cb1641cb6a95dfa00ec866908e - Sigstore transparency entry: 2294761805
- Sigstore integration time:
-
Permalink:
strands-agents/harness-sdk@cfc88257282aaf48bd866e046de11fad7068301f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/strands-agents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-mcp.yml@cfc88257282aaf48bd866e046de11fad7068301f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file strands_agents_mcp_server-0.2.8-py3-none-any.whl.
File metadata
- Download URL: strands_agents_mcp_server-0.2.8-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e9101d987a5e7249bcad35c16c7a5d55e484156fb7f7f1e2df2918fcfaeb36
|
|
| MD5 |
44fb770d52b8275401ee1ccaec776d24
|
|
| BLAKE2b-256 |
f0c0d641287afb40da0ee9dbb8a792603dbddb2382170024ec50b176af312dd3
|
Provenance
The following attestation bundles were made for strands_agents_mcp_server-0.2.8-py3-none-any.whl:
Publisher:
release-mcp.yml on strands-agents/harness-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_agents_mcp_server-0.2.8-py3-none-any.whl -
Subject digest:
36e9101d987a5e7249bcad35c16c7a5d55e484156fb7f7f1e2df2918fcfaeb36 - Sigstore transparency entry: 2294761875
- Sigstore integration time:
-
Permalink:
strands-agents/harness-sdk@cfc88257282aaf48bd866e046de11fad7068301f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/strands-agents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-mcp.yml@cfc88257282aaf48bd866e046de11fad7068301f -
Trigger Event:
workflow_dispatch
-
Statement type: