loading…
Search for a command to run...
loading…
An MCP server that provides comprehensive access to AWS Amplify Gen 2 Next.js documentation, enabling AI assistants to provide accurate, up-to-date guidance on
An MCP server that provides comprehensive access to AWS Amplify Gen 2 Next.js documentation, enabling AI assistants to provide accurate, up-to-date guidance on building applications with Amplify.
An MCP (Model Context Provider) server that provides comprehensive access to AWS Amplify Gen 2 Next.js documentation, enabling AI assistants to provide accurate, up-to-date guidance on building applications with Amplify.
MCP Python SDK Documentation
This server is built based on the MCP Python SDK documentation found here: https://github.com/modelcontextprotocol/python-sdk
curl -LsSf https://astral.sh/uv/install.sh | shAWS Amplify Gen 2 is compatible with:
Use uv run python amplify_cli.py check-versions to verify compatibility.
⚠️ IMPORTANT: Manual package installation often leads to version conflicts!
For a new project with guaranteed compatible versions:
Use Amplify's Next.js starter template (STRONGLY recommended):
npx create-amplify@latest --template nextjs
Or equivalently:
npm create amplify@latest --template nextjs
This creates a complete Next.js project with ALL compatible versions pre-configured.
Why manual installation is problematic:
npm create amplify@latest followed by npm install next react react-dom often causes dependency conflictsIf you must use an existing Next.js project:
npm create amplify@latestVerify compatibility:
uv run python amplify_cli.py check-versions
# Clone the repository
git clone https://github.com/your-username/amplify-gen-2-nextjs-docs.git
cd amplify-gen-2-nextjs-docs
# Install all dependencies automatically (like npm install)
uv sync
# Initialize the documentation database
uv run python amplify_docs_server.py
# Press Ctrl+C after it starts successfully
Note:
uv syncautomatically installs all dependencies frompyproject.toml- no manual package installation needed!
Open your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/claude/claude_desktop_config.jsonAdd the server configuration:
{
"mcpServers": {
"amplify-docs": {
"command": "uv",
"args": ["run", "python", "/full/path/to/amplify_docs_server.py"],
"env": {}
}
}
}
Restart Claude Desktop
Claude Code automatically discovers MCP servers. Simply ensure the server is running or configure it in your project's MCP settings.
Get a comprehensive overview of all documentation with summaries and quick navigation.
Parameters:
format (string, optional): Output format - 'full' or 'summary' (default: 'summary')Example:
Get documentation overview in summary format
Search through the indexed Amplify documentation.
Parameters:
query (string, required): Search query (searches titles and content)category (string, optional): Filter by categorylimit (integer, optional): Maximum number of results (default: 10)Categories:
Example:
Search for "authentication" in category "backend"
Retrieve a specific document by URL.
Parameters:
url (string, required): The full URL of the documentExample:
Get document at https://docs.amplify.aws/nextjs/build-a-backend/auth/
List all available documentation categories.
Example:
List all categories
Get statistics about the indexed documentation.
Example:
Show documentation statistics
Find common Amplify Gen 2 patterns and examples.
Parameters:
pattern_type (string, required): Type of pattern to findPattern Types:
Example:
Find patterns for "auth"
Get the CORRECT command for creating a new Amplify Gen 2 + Next.js application.
Example:
Get the correct create command
Get ready-to-use code patterns for common Amplify tasks.
Parameters:
task (string, required): The task you want to accomplishAvailable Tasks:
Example:
Get quick start pattern for "add-auth"
First, fetch the latest documentation:
Use the fetchLatestDocs tool to index Amplify documentation
Check the statistics:
Use getStats to see how many documents were indexed
Search for "cognito authentication" using searchDocs
Use findPatterns with pattern_type "auth" to find authentication examples
Use getDocument with url "https://docs.amplify.aws/nextjs/build-a-backend/data/"
uv run python amplify_docs_server.py
./run_server.sh
The project includes a CLI tool (amplify_cli.py) for direct interaction with the documentation database without running the MCP server.
The CLI automatically checks if your documentation is outdated (more than 30 days old) when you run any command except fetch. If an update is needed, you'll be prompted to update. If you decline, the system will wait at least 24 hours before asking again.
uv run python amplify_cli.py fetch [--force]
--force: Force refresh of existing documentsuv run python amplify_cli.py search "your query" [--category CATEGORY] [--limit N]
--category: Filter by category (backend, frontend, etc.)--limit: Maximum number of results (default: 10)uv run python amplify_cli.py categories
uv run python amplify_cli.py stats
uv run python amplify_cli.py patterns TYPE
Where TYPE is one of: auth, api, storage, deployment, configuration, database, functions
# Fetch all available documentation
uv run python amplify_cli.py fetch
# Force refresh all documents
uv run python amplify_cli.py fetch --force
# Fetch with markdown export
uv run python amplify_cli.py fetch --save-markdown
# Search for authentication docs
uv run python amplify_cli.py search "cognito authentication" --category backend
# Get full document content
uv run python amplify_cli.py get-document "https://docs.amplify.aws/nextjs/..."
# Show database statistics
uv run python amplify_cli.py stats
# Find auth patterns
uv run python amplify_cli.py patterns auth
# List all categories
uv run python amplify_cli.py categories
# Export all documents to markdown files
uv run python amplify_cli.py export-markdown
# Check version compatibility
uv run python amplify_cli.py check-versions
The server uses SQLite to store documentation locally. The database file amplify_docs.db is created in the same directory as the server.
documents table:
scrape_metadata table:
Use the included test script:
uv run python test_server.py
The server uses Python's logging module. Set the log level in the code:
logging.basicConfig(level=logging.INFO)
The CLI tracks documentation updates in a last_updated.json file (automatically created on first use). This file contains:
last_updated: When documentation was last fetchedlast_prompted: When the user was last asked about updatesuser_declined: Whether the user declined the last update promptThis file is gitignored and local to each installation.
If you see npm warnings about peer dependencies after manual installation:
npx create-amplify@latest --template nextjs insteadnpx create-amplify often causes conflictsnpm create and npx commands are equivalentuv syncpython --version (requires 3.8+)fetchLatestDocs first to populate the databaseamplify_docs.db exists in the project directorygetStats)Feel free to submit issues or pull requests to improve the server.
This project is licensed under the MIT License.
Выполни в терминале:
claude mcp add aws-amplify-gen-2-documentation-mcp-server -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai