CLI tool for querying AWS Knowledge MCP Server
CLI tool for searching and reading AWS documentation programmatically. Use when you need to search AWS docs, convert pages to markdown, or discover related documentation.
/plugin marketplace add dnvriend/aws-knowledge-tool/plugin install aws-knowledge-tool@aws-knowledge-toolThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill provides access to the aws-knowledge-tool CLI - a command-line interface for querying the AWS Knowledge MCP Server. Use it to search, read, and discover AWS documentation programmatically.
Use this skill when:
Do NOT use this skill for:
The aws-knowledge-tool is a CLI tool for querying the AWS Knowledge MCP Server to search, read, and discover AWS documentation.
# Clone and install
git clone https://github.com/dnvriend/aws-knowledge-tool.git
cd aws-knowledge-tool
uv tool install .
# Search AWS documentation
aws-knowledge-tool search "Lambda function URLs"
# Read documentation page
aws-knowledge-tool read "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
# Get recommendations
aws-knowledge-tool recommend "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
Search across AWS documentation, blogs, solutions library, architecture center, and prescriptive guidance.
Usage:
aws-knowledge-tool search QUERY [OPTIONS]
Arguments:
QUERY: Search query text (required)--limit N / -l N: Maximum results (default: 10)--offset M / -o M: Skip first M results for pagination (default: 0)--json: Output JSON format for processing--stdin: Read query from stdin (for pipelines)-v/-vv/-vvv: Verbosity (INFO/DEBUG/TRACE)Examples:
# Basic search
aws-knowledge-tool search "S3 versioning"
# With pagination
aws-knowledge-tool search "Lambda" --limit 10 --offset 20
# JSON output
aws-knowledge-tool search "DynamoDB" --json
# Pipeline usage
echo "CloudFormation" | aws-knowledge-tool search --stdin --json
Output:
Returns list of results with: title, url, context, rank_order
Fetch and convert AWS documentation pages to markdown format.
Usage:
aws-knowledge-tool read URL [OPTIONS]
Arguments:
URL: AWS documentation URL (required)--start-index N / -s N: Starting character index for pagination--max-length M / -m M: Maximum characters to fetch--json: Output JSON format--stdin: Read URL from stdin-v/-vv/-vvv: Verbosity (INFO/DEBUG/TRACE)Examples:
# Read full document
aws-knowledge-tool read "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
# With pagination (large docs)
aws-knowledge-tool read "https://docs.aws.amazon.com/..." \
--start-index 5000 --max-length 2000
# Pipeline from search
aws-knowledge-tool search "Lambda" --json | \
jq -r '.[0].url' | \
aws-knowledge-tool read --stdin
Output: Returns markdown-formatted documentation content.
Supported domains:
docs.aws.amazon.comaws.amazon.comDiscover related documentation through four recommendation types.
Usage:
aws-knowledge-tool recommend URL [OPTIONS]
Arguments:
URL: AWS documentation URL (required)--type TYPE / -t TYPE: Filter by recommendation type
highly_rated: Popular pages within same AWS servicenew: Recently added pages (useful for finding new features)similar: Pages covering similar topicsjourney: Pages commonly viewed next by other users--limit N / -l N: Max results per category (default: 5)--offset M / -o M: Skip first M per category (default: 0)--json: Output JSON format--stdin: Read URL from stdin-v/-vv/-vvv: Verbosity (INFO/DEBUG/TRACE)Examples:
# Get all recommendations
aws-knowledge-tool recommend "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
# Filter by type (find new features)
aws-knowledge-tool recommend "https://docs.aws.amazon.com/..." --type new
# JSON output with limit
aws-knowledge-tool recommend "https://docs.aws.amazon.com/..." --json --limit 3
# Pipeline usage
aws-knowledge-tool search "Lambda" --json | \
jq -r '.[0].url' | \
aws-knowledge-tool recommend --stdin --type similar
Output: Returns dict with recommendation categories and their pages (title, url, context).
</details> <details> <summary><strong>⚙️ Advanced Features (Click to expand)</strong></summary>Control logging detail with progressive verbosity levels. All logs output to stderr.
Logging Levels:
| Flag | Level | Output | Use Case |
|---|---|---|---|
| (none) | WARNING | Errors and warnings only | Production, quiet mode |
-v | INFO | + High-level operations | Normal debugging |
-vv | DEBUG | + Detailed info, full tracebacks | Development, troubleshooting |
-vvv | TRACE | + Library internals | Deep debugging |
Examples:
# INFO level - see operations
aws-knowledge-tool search "Lambda" -v
# DEBUG level - see detailed info
aws-knowledge-tool search "Lambda" -vv
# TRACE level - see all internals
aws-knowledge-tool search "Lambda" -vvv
Native shell completion for bash, zsh, and fish.
Installation:
# Bash (add to ~/.bashrc)
eval "$(aws-knowledge-tool completion bash)"
# Zsh (add to ~/.zshrc)
eval "$(aws-knowledge-tool completion zsh)"
# Fish (save to completions)
aws-knowledge-tool completion fish > ~/.config/fish/completions/aws-knowledge-tool.fish
Compose commands with Unix pipes for powerful workflows.
Examples:
# Search → Extract URL → Read
aws-knowledge-tool search "Lambda" --json | \
jq -r '.[0].url' | \
aws-knowledge-tool read --stdin
# Search → Extract URL → Get similar docs
aws-knowledge-tool search "S3" --json | \
jq -r '.[0].url' | \
aws-knowledge-tool recommend --stdin --type similar
# Save search results to file
aws-knowledge-tool search "DynamoDB" --json > results.json
# Read and save as markdown
aws-knowledge-tool read "https://docs.aws.amazon.com/..." > lambda-docs.md
</details>
<details>
<summary><strong>🔧 Troubleshooting (Click to expand)</strong></summary>
Issue: Command not found
# Verify installation
aws-knowledge-tool --version
# Reinstall if needed
cd aws-knowledge-tool
uv tool install . --reinstall
Issue: No results from search
--json to see full responseIssue: URL validation error
docs.aws.amazon.com or aws.amazon.comIssue: Connection timeout
-vv# Show help
aws-knowledge-tool --help
# Command-specific help
aws-knowledge-tool search --help
aws-knowledge-tool read --help
aws-knowledge-tool recommend --help
</details>
0: Success1: Client error (invalid arguments, validation failed)2: Server error (API error, network issue)3: Network error (connection failed, timeout)Default (Markdown):
JSON (--json flag):
--json when piping to other tools--limit and --offset for controlled fetching-v, increase to -vv/-vvv only if neededCreate employment contracts, offer letters, and HR policy documents following legal best practices. Use when drafting employment agreements, creating HR policies, or standardizing employment documentation.
Implement GDPR-compliant data handling with consent management, data subject rights, and privacy by design. Use when building systems that process EU personal data, implementing privacy controls, or conducting GDPR compliance reviews.