io.github.lazymac2x/graphql-dos-shield
Official3 toolsby lazymac2x · JavaScript
Cloudflare Workers MCP server: graphql-dos-shield
Cloudflare Workers MCP server protecting GraphQL APIs from denial-of-service attacks.
Captured live from the server via tools/list.
complexity_meter
Analyze GraphQL query complexity. Returns depth, field count, list multipliers, and a risk level (LOW/MEDIUM/HIGH/CRITICAL). CRITICAL means the query should be rejected.
Parameters (1)
- querystringrequired
GraphQL query string to analyze
rate_limiter
Check and enforce rate limiting for a client. In-memory sliding window — state resets on cold start.
Parameters (3)
- client_idstringrequired
Unique client identifier
- limitinteger
Max requests per window (default: 100)
- window_msinteger
Window in ms (default: 60000)
query_rewriter
Text-level rewrite of an overly complex GraphQL query: strips excess nesting depth and truncates too many fields.
Parameters (3)
- querystringrequired
GraphQL query to simplify
- max_depthinteger
Max nesting depth (default: 3)
- max_fieldsinteger
Max fields (default: 10)
README not available yet.
Install
claude_desktop_config.json
{
"mcpServers": {
"graphql-dos-shield": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.lazy-mac.com/graphql-dos-shield/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.