Guard Core MCP
An MCP server that lets AI coding agents answer questions about the Guard security ecosystem from the libraries themselves, instead of from memory.
Covers fastapi-guard, guard-core and guard-agent.
Why
Your agent can already read the docs. What it cannot do is tell you that the redis_failopen in your config is silently doing nothing because the real field is redis_fail_open, or that the flag you are reaching for did not exist until guard-core 3.5.0, or whether a given request would actually be blocked and by which pattern.
This server answers those from the installed package: real pydantic validation, real field metadata, and the real detection engine.
Install
Install it into your project's environment, not as an isolated tool:
uv add --dev guard-core-mcp
claude mcp add guard-core -- uv run guard-core-mcp
uvx guard-core-mcp will start, but an isolated environment contains no guard-core or fastapi-guard for it to introspect, so it can only answer from bundled documentation. Running it inside your own environment is what makes the answers match the versions you actually ship.
Tools
| Tool | Answers |
|---|---|
versions |
Which Guard libraries are installed here, and at what version |
validate_config |
Is this config valid, including typo'd keys pydantic silently ignores |
config_fields |
What is this setting, what does it default to, does a setting for X exist |
search_docs |
Where do the docs cover this |
get_doc |
The full text of one documentation page |
check_payload |
Would this request be blocked, and by which pattern |
Licence
MIT
Release files for guard-core-mcp 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| guard_core_mcp-1.0.2.tar.gz | 696.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| guard_core_mcp-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / guard_core_mcp-1.0.2.tar.gz
| Download URL | guard_core_mcp-1.0.2.tar.gz |
|---|---|
| Size | 696.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db1cf8b03ff9160f51067dd4e2494fdd58545e1a7ddab6739228a29ecba199ae
|
|
BLAKE2b-256 checksum How to use checksums |
da0be488ea253ba1c8d56cd33f39f9124bf964bf50c0dfffc3a636e4e887229e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / guard_core_mcp-1.0.2-py3-none-any.whl
| Download URL | guard_core_mcp-1.0.2-py3-none-any.whl |
|---|---|
| Size | 519.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dfd6ad0b08aa9ef42e1982321312c6fae2b0a2ddc32f6138ab4658636057567
|
|
BLAKE2b-256 checksum How to use checksums |
8957dd9b84768c41e3518030441d8fb36ad8ad9b41aa1f208c5c28b8d4d33bbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|