Precogly MCP
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Precogly MCPstart a threat model for our new payment processing service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Precogly MCP
MCP server for Precogly threat modeling.
Status
Early. Four tools, all read-only:
list_threat_models— threat models in the caller's organizations, most recently updated first, withtotalbeside them. Mounted, that is everything the caller can read; over stdio it is one page of twenty, andtotalis how you tell the difference.search_threat_library,search_countermeasure_library,search_component_library— the shared catalogs installed packs populate, withmatchedandcatalogSizebeside the rows.
Both transports work end to end. A tool reads Precogly through a protocol the mounting application supplies rather than by forwarding the caller's token, which cannot work mounted: a token issued for the MCP endpoint is audience-bound and invalid at Precogly's REST API by construction (0008).
Related MCP server: GauntletCI-MCP
Two transports
Which one you run decides where the credential comes from, and nothing else. The tools, their schemas and their results are identical.
mounted in Precogly | stdio | |
credential | a user authorizes in a browser; the token is the caller's |
|
lifetime | 10 hours, refreshed by the client without a prompt | 60 minutes, re-exported by hand |
acts as | the user who authorized it | whoever the token belongs to |
verified by | the mounting application, against its own tables | not verified; forwarded as-is |
The mounted transport is the product (0008); stdio is what predates it and what the MCP specification prescribes for a server that speaks over a pipe.
Mounted
Precogly serves the endpoint from its own WSGI process at /mcp, and supplies a token
verifier — this package never imports Django. config/mcp_mount.py in the Precogly
repository is the whole of the wiring. A client then needs no configuration beyond the
URL:
{
"mcp": {
"precogly": {
"type": "remote",
"url": "http://localhost:8000/mcp",
"enabled": true
}
}
}For opencode, that is an opencode.json — either in the project
root or in ~/.config/opencode/, which makes the server reachable from any directory —
followed by:
opencode mcp auth precogly # discovery, registration, browser consent
opencode mcp list # ✓ connectedThe client discovers where to authorize from the 401 this endpoint returns, registers itself, and sends the user to Precogly's own login and consent screens (0004, 0009). Nothing is pasted anywhere.
Stdio
Two environment variables, both read by the server process:
| Bearer token for the Precogly API. Required. |
| Base URL of the deployment. Defaults to |
Against a locally seeded instance, a token comes from the login endpoint:
export PRECOGLY_URL=http://localhost:8000
export PRECOGLY_TOKEN=$(curl -s -X POST "$PRECOGLY_URL/api/auth/login/" \
-H 'Content-Type: application/json' \
-d '{"email":"admin@precogly.dev","password":"admin123"}' \
| python3 -c "import sys,json;print(json.load(sys.stdin)['access'])")Either entry point runs it:
uv run precogly-mcp # console script
uv run python -m precogly_mcp.server # equivalentUnder the MCP Inspector, for poking at schemas by hand. --with-editable . is required —
mcp dev runs the file in an ephemeral environment containing only mcp, so without it
nothing in this package imports:
uv run mcp dev src/precogly_mcp/server.py --with-editable .Development
This project uses uv for dependencies and tooling.
uv sync # create .venv and install deps + dev tools
uv run pytest # run tests
uv run ruff check . # lint
uv run ruff format . # format
uv run mypy src # type-check (strict)
uv run pip-audit # scan dependencies for CVEsInstall the git hooks once:
uv run pre-commit installTests need no running Precogly. mcp.client.Client drives the server over in-memory
streams, so tools/list and tools/call are exercised as a client sees them, and
httpx2.MockTransport stands in for the API.
That transport is also their blind spot: every test passed against a version of
tools/call that failed on the first real request, because the fake never enforced the
audience binding a live token carries. A change to how tools reach data, or to what
Precogly's serializers return, wants a run against a seeded stack before it is believed.
Design
0001 — service token model (partially superseded by 0003)
0002 — tool implementation order
0003 — Precogly is the authorization server (resource server superseded by 0008)
0004 — where the user authorizes
0005 — code execution over tools
0006 — catalog search filters here
0007 — re-authenticating at consent
0008 — the MCP server runs inside Precogly
0009 — the authorization pages are built, not copied
0010 — the MCP app owns its resource metadata
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
Alicense-qualityAmaintenanceAn MCP server that enables easy integration with coding assistants, providing security context to AI agents. This runs locally using the Snyk CLI.54Apache 2.0- FlicenseBqualityDmaintenanceMCP server that integrates GauntletCI to analyze behavioral change risk in commits, providing findings as text, JSON, or SARIF reports for AI assistants.31
- FlicenseAqualityDmaintenanceMCP server for security analysis using VirusTotal API, enabling AI assistants to analyze URLs, files, IP addresses, and domains with automatic relationship fetching.81
- AlicenseBqualityDmaintenanceA comprehensive MCP server for structured threat modeling using STRIDE methodology, with automatic code validation and report generation.10085Apache 2.0
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for AI access to Swagger by SmartBear.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/precogly/precogly-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server