Skip to main content

A Model Context Protocol server that provides knowledge about building AI agents with Strands Agents

Project description

Strands Agents MCP Server

A model-driven approach to building AI agents in just a few lines of code.

GitHub commit activity GitHub open issues GitHub open pull requests License PyPI version Python versions

DocumentationSamplesPython SDKToolsAgent BuilderMCP Server

This MCP server provides curated documentation access to your GenAI tools via llms.txt files, enabling AI coding assistants to search and retrieve relevant documentation with intelligent ranking.

Features

  • Smart Document Search: TF-IDF based search with Markdown-aware scoring that prioritizes titles, headers, and code blocks
  • 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: Provides contextual snippets with relevance scoring for quick overview
  • Real URL Support: Works with actual HTTPS URLs while maintaining backward compatibility

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.

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/mcp-server
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"
      ]
    }
  }
}

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:

    • Use search_docs to find relevant documentation with intelligent ranking
    • Use fetch_doc to retrieve full content from specific URLs
    • The server automatically indexes curated content from llms.txt files

Server Development

git clone https://github.com/strands-agents/mcp-server.git
cd mcp-server
python3 -m venv venv
source venv/bin/activate
pip3 install -e .

npx @modelcontextprotocol/inspector python -m strands_mcp_server

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

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Security

See CONTRIBUTING for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strands_agents_mcp_server-0.2.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strands_agents_mcp_server-0.2.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file strands_agents_mcp_server-0.2.0.tar.gz.

File metadata

File hashes

Hashes for strands_agents_mcp_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 522c4246f6d1380cff27b87f90f303ff08dbda685d1811be735d536c4a2b0c13
MD5 bbc19b4e56a97b8753ff7b59843e4eee
BLAKE2b-256 e8caee12ad3279d81eaf9b63a4f9fd40ab21dcbf9d06f60741becd8c33d13bfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for strands_agents_mcp_server-0.2.0.tar.gz:

Publisher: pypi-publish-on-release.yml on strands-agents/mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strands_agents_mcp_server-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for strands_agents_mcp_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34ddd30f0748308be3a5d4ccb79f1cb02c5561eb4ba67f3e799c97af9161ff04
MD5 1d225b2eed96d7c9ba4deda775fcf273
BLAKE2b-256 aa049bd1e413169012374fa3ce3ee128213e8da6a9e147bde8eac2a9cad9f145

See more details on using hashes here.

Provenance

The following attestation bundles were made for strands_agents_mcp_server-0.2.0-py3-none-any.whl:

Publisher: pypi-publish-on-release.yml on strands-agents/mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page