fastapi-guard
A security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts, honeypot setup, behavioural analysis, emergency mode lockdown, block Cloud Provider IPs, country blocking, and much more... It integrates seamlessly with FastAPI to offer robust protect
MCP Agents Market is an independent directory. We are not affiliated with rennf93 or fastapi-guard, and we do not host or distribute it. All links point to the official GitHub repository.
Guard-core-mcp is an MCP server that provides AI coding assistants with context-aware security configuration help for FastAPI Guard and the Guard ecosystem. It validates security configurations against the actual installed SecurityConfig model, searches bundled documentation, looks up field types and defaults, and runs payloads through the detection engine to test whether they would be blocked. Unlike relying on an AI model's potentially outdated memory, this server introspects the real installed version in your project environment to deliver accurate, version-specific guidance.
Key Features
Use Cases
- 01Validating FastAPI Guard security configuration while writing code to catch invalid field names before runtime
- 02Looking up correct parameter names, types, and defaults when configuring rate limiting or IP blocking rules
- 03Testing whether a specific request payload or attack pattern would be blocked by current detection rules
- 04Getting accurate documentation about security features from the exact installed version rather than outdated AI knowledge
- 05Debugging security middleware configuration issues by querying field descriptions and valid values
- 06Exploring available security decorators and their parameters while developing protected API endpoints
Related MCP Servers
View morefirecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
markitdown
Python tool for converting files and office documents to Markdown.
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
fastapi-guard — FAQ
What is guard-core-mcp?+
Guard-core-mcp is an MCP server that enables AI coding assistants to answer questions about FastAPI Guard using the actual version installed in your project. It validates configurations, searches documentation, and tests detection patterns against the real security engine rather than relying on the AI model's memory.
How do I install guard-core-mcp?+
Install it in the same environment as your FastAPI Guard installation using 'uv add --dev guard-core-mcp' or 'pip install guard-core-mcp'. Then add it to your Claude Desktop config with 'claude mcp add guard-core -- uv run guard-core-mcp'. It must be in the same environment to introspect the installed Guard version.
Which AI clients work with guard-core-mcp?+
It works with Claude Desktop and any other MCP-compatible AI coding assistant. The server follows the Model Context Protocol standard for tool integration.
Do I need API keys or external services?+
No, guard-core-mcp runs entirely locally and introspects the Guard packages installed in your project environment. It requires no API keys or cloud services.
Is guard-core-mcp free to use?+
Yes, it is released under the MIT License and is completely free and open source. It's separate from the optional paid Guard cloud dashboard service.
Why install it in the same environment as FastAPI Guard?+
The server introspects the actual installed Guard packages to provide version-specific answers and validation. Running it in isolation (like with uvx) means it has no Guard installation to read from and cannot provide accurate help.
How do I install fastapi-guard?+
Open the source repository on GitHub and follow its README. fastapi-guard is a mcp server — MCP Agents Market links you directly to the official repo.
Is fastapi-guard free?+
fastapi-guard is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.