AWS Documentation MCP server is a Model Context Protocol (MCP) implementation that provides tools to access, search, and get recommendations for AWS documentation. It enables you to interact with AWS documentation in an integrated way, allowing you to quickly look up information, search for specific content, and receive relevant recommendations.
Before installing the MCP server, you need to:
uv
from Astral or the GitHub repositoryuv python install 3.10
You can configure the AWS Documentation MCP Server in different environments:
Create a configuration file (e.g., for Amazon Q Developer CLI MCP, at ~/.aws/amazonq/mcp.json
):
{
"mcpServers": {
"awslabs.aws-documentation-mcp-server": {
"command": "uvx",
"args": ["awslabs.aws-documentation-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}
First, build the Docker image:
docker build -t awslabs/aws-documentation-mcp-server .
Then configure the MCP server in your configuration file:
{
"mcpServers": {
"awslabs.aws-documentation-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env",
"FASTMCP_LOG_LEVEL=ERROR",
"awslabs/aws-documentation-mcp-server:latest"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
The AWS Documentation MCP Server provides several ways to interact with AWS documentation.
You can ask natural language questions about AWS services, such as:
The read_documentation
tool fetches an AWS documentation page and converts it to markdown format.
read_documentation(url: str) -> str
content = read_documentation("https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html")
The search_documentation
tool searches AWS documentation using the official AWS Documentation Search API.
search_documentation(search_phrase: str, limit: int) -> list[dict]
results = search_documentation("S3 bucket lifecycle rules", 5)
The recommend
tool gets content recommendations for an AWS documentation page.
recommend(url: str) -> list[dict]
recommendations = recommend("https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html")
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.