Skip to main content
Glama
Strands Agents MCP Server

Strands Agents MCP Server

Official

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

  • Document Search: Field-weighted BM25 ranking over page titles, URL paths, and llms.txt descriptions, extended to page content once a page is hydrated (fetched), so body terms become searchable

  • 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, alternate_queries) ranks by page title, URL path, and llms.txt description, and by page content once a page has been hydrated. Both title-like keywords and body terms work; call fetch_doc to inspect a result's contents. The changelog index, which concatenates every release note, is ranked by title and description only.

  • alternate_queries takes up to 4 other phrasings of the same question. Each phrasing is searched and the rankings are combined with reciprocal rank fusion, so pages matched by several phrasings rank first. Phrasings that tokenize the same as an earlier one are searched once.

  • Search scores are unbounded field-weighted BM25 values, or fused rank scores when alternate_queries are given. They are useful only for ordering results from the same query; they are not probabilities and should not be compared across queries.

  • search_docs returns an empty list when no document matches. If a matched page cannot be fetched for its snippet, the result still includes the URL and title.

  • fetch_doc returns {"error": "...", "url": "...", "hint": "..."} for unsupported URLs, URLs that are not in the docs catalog (with the closest catalog URLs as suggestions), and unknown section IDs (with the valid sections); section is ignored when the full document is returned automatically. A catalog page that cannot be fetched is reported as a tool error (isError: true).

  • find_integrations(query, type, language, maintained_by, sdk, limit) filters the integrations catalog feed at https://strandsagents.com/integrations.json, fetched on first use and cached for 10 minutes. It returns the total match count and up to limit results carrying the maintainer, install commands, and a docs URL; on-site docs URLs can be passed to fetch_doc. A failed refresh keeps serving the cached copy; a feed that has never loaded is reported as a tool error.

  • All tools are annotated read-only and idempotent, and the server sends instructions telling clients when to use it and in which order to call the tools.

Related MCP server: strands-mcp

Configuration

  • STRANDS_MCP_PREFETCH_ALL: when set to a truthy value (1, true, yes), the server prefetches and indexes all pages in the background at startup, so body-term search works immediately instead of only after a page has been hydrated by a prior query. Defaults to off. Prefetch is best-effort and eventually consistent: results may be title-only until background hydration completes.

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:

Install in Kiro Install in Cursor Install in VS Code

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

  1. Install prerequisites:

  2. Configure your MCP client:

    • Choose your preferred MCP client from the installation examples above

    • Add the Strands Agents MCP server configuration to your client

  3. 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
  4. Start using the documentation tools:

    • search_docs - Find relevant documentation with intelligent ranking

    • fetch_doc - Browse a page's structure and preamble, then read individual sections

    • find_integrations - Filter the integrations catalog by type, language, and maintainer

    • 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.

Available Tools

3 tools
fetch_docRead a Strands docs pageA
Read-onlyIdempotent

Read a Strands docs page, one section at a time for token efficiency.

Without section, returns the page's table of contents (sections with id, level, title, summary, children) and its preamble. With section, returns that section's full markdown as content. Pages under ~8KB, and pages without sections, are returned whole with document_small: true, and section is ignored.

Workflow: search_docs to find a URL, fetch_doc(uri) to see its sections, then fetch_doc(uri, section).

Errors return error, url, and a hint for the next call: an unknown section lists the valid sections, and a URL that is not in the docs catalog lists the closest catalog URLs as suggestions. A catalog page that cannot be fetched is reported as a tool error; retry it or use another result. Fetched pages are cached for the life of the server process.

Inputs: uri, section. Returns: result

find_integrationsFind Strands integrationsA
Read-onlyIdempotent

Find Strands integrations in the catalog published at https://strandsagents.com/integrations/.

Every keyword in query must appear in the name or description; name matches rank first. Returns total, the number of matching integrations, and results, the first limit of them; when total is larger, raise limit or narrow the filters. Each result has name, description, type, sdk, maintained_by, languages, packages (each with language, package, and an install command), docs_url, and github. A docs_url on strandsagents.com can be read with fetch_doc. An integration listed for a language without a package is documented by a guide only.

The catalog is fetched on first use and refreshed every few minutes. If it has never loaded, the call fails with a tool error; retry later or use search_docs.

Inputs: sdk, type, limit, query, +2 more. Returns: result

search_docsSearch Strands docsA
Read-onlyIdempotent

Search the official Strands Agents docs: user guides, API reference pages, and examples.

Ranking uses page titles, URL paths, and catalog descriptions, plus a page's content once it has been fetched, so both title-like keywords and body terms work. The top results are fetched on demand to build snippets. Call fetch_doc with a result URL to read the page or one of its sections. If you already have a strandsagents.com URL, call fetch_doc directly instead of searching. When the question is phrased conversationally, pass alternate_queries with the terms the docs likely use instead of searching again.

Each result has url, title, snippet, and score. The score is an unbounded BM25 value, or a fused rank score when alternate_queries are given: higher is better within one result set; it is not a probability and is not comparable across queries. Returns an empty list when nothing matches. If a result page cannot be fetched, its title is used as the snippet.

Inputs: query (required), k, alternate_queries. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 3 tools

    Disambiguation4/5

    find_integrations and search_docs both search, but they target clearly different corpora (integration catalog vs. official docs), and the descriptions explicitly cross-reference each other to guide selection. fetch_doc is clearly distinct as the page-reading tool. Minor residual ambiguity exists only because two tools are search-shaped.

    Naming Consistency5/5

    All three names follow a clean verb_noun snake_case pattern: find_integrations, fetch_doc, search_docs. The singular 'doc' vs. plural 'docs' is a natural domain distinction, not an inconsistency.

    Tool Count5/5

    Three tools is lean but well matched to a focused docs-and-integrations server: search, fetch a page, and look up integrations. Each tool earns its place, and there is no redundant surface.

    Completeness4/5

    The core workflow is covered: search_docs finds pages, fetch_doc reads them section-by-section, and find_integrations supplies integration metadata including docs URLs. Minor gaps exist, such as no explicit browse/list operation for the docs catalog or integrations, but agents can work around these via search queries.

    Maintenance

    ActivityActive
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to search, read, and traverse documentation bundles in Open Knowledge Format via MCP tools.
      771 npm
      74
      MIT