Obscan
FreeNot checkedConformance and security linter for Open Banking / FAPI APIs: validates OAuth flows, consent scopes, and PSD2 endpoints against the spec.
About
Conformance and security linter for Open Banking / FAPI APIs: validates OAuth flows, consent scopes, and PSD2 endpoints against the spec.
README
OBSCAN
Conformance and security linter for Open Banking / FAPI APIs: validates OAuth flows, consent scopes, and PSD2 endpoints against the spec.
PyPI CI License: COCL 1.0 Suite
Fintech & Payments Security — PCI, fraud, AML, and payment rails.
pip install cognis-obscan
obscan scan . # → prioritized findings in seconds
🔎 Example output
Real, reproducible output from the tool — runs offline:
$ obscan-emit --version
obscan 0.1.0
$ obscan-emit --help
usage: obscan [-h] [--version] {lint} ...
OBSCAN — Open Banking / FAPI / PSD2 conformance linter for OpenAPI documents. Fails your CI on non-compliant OAuth, consent scope and PSD2 endpoint definitions.
positional arguments:
{lint}
lint lint an OpenAPI document for Open Banking / FAPI conformance
options:
-h, --help show this help message and exit
--version show program's version number and exit
examples:
obscan lint openapi.json
obscan lint openapi.json --format json | jq .
obscan lint openapi.json --fail-on warning
Blocks above are real
obscanoutput — reproduce them from a clone.
Sample result format (illustrative values — run on your own data for real findings):
{
"Findings": [
{
"id": "1234567890",
"title": "Suspicious DNS Query",
"description": "A suspicious DNS query was detected from IP address 192.168.1.100.",
"severity": "high",
"created_at": "2023-02-15T14:30:00Z"
},
{
"id": "2345678901",
"title": "Unusual Network Traffic",
"description": "An unusual network traffic pattern was detected from IP address 192.168.1.101.",
"severity": "medium",
"created_at": "2023-02-15T14:31:00Z"
}
]
}
Usage — step by step
obscan is an Open Banking / FAPI / PSD2 conformance linter for OpenAPI
documents. Console script: obscan.
- Install from a clone:
pip install -e . - Lint an OpenAPI JSON document:
obscan lint openapi.json - Choose what fails the run — by default only
errorfindings fail; tighten it:obscan lint openapi.json --fail-on warning - Read the output —
--format jsonfor CI pipelines:
Exit codes:obscan lint openapi.json --format json | jq '.'0clean at/above threshold,1findings at/above threshold,2input error. - Automate in CI — enforce FAPI conformance on every spec change:
- run: pip install -e . - run: obscan lint api/openapi.json --fail-on error
Contents
- Why obscan? · Features · Quick start · Example · Architecture · AI stack · How it compares · Integrations · Install anywhere · Related · Contributing
Why obscan?
FAPI/PSD2 conformance testing is locked behind heavyweight vendor suites; a fast self-hostable CLI that fails CI on a non-compliant consent flow is catnip for fintech platform teams.
obscan is single-purpose, scriptable, and self-hostable: point it at a target, get prioritized results in the format your workflow already speaks (table · JSON · SARIF), gate CI on it, and let agents drive it over MCP.
Features
- ✅ Load Document
- ✅ Rule Oauth Present
- ✅ Rule No Implicit Grant
- ✅ Rule Authorization Code Used
- ✅ Rule Https Tokens
- ✅ Rule Consent Scopes
- ✅ Rule Operations Secured
- ✅ Rule Psd2 Coverage
- ✅ Runs on Linux/macOS/Windows · Docker · devcontainer
- ✅ Ports in Python, JavaScript, Go, and Rust (
ports/)
Quick start
pip install cognis-obscan
obscan --version
obscan scan . # scan current project
obscan scan . --format json # machine-readable
obscan scan . --fail-on high # CI gate (non-zero exit)
Example
$ obscan scan .
[HIGH ] OBS-001 example finding (./src/app.py)
[MEDIUM ] OBS-002 another signal (./config.yaml)
2 findings · risk score 5 · 38ms
Architecture
flowchart LR
IN[target / manifest] --> P[obscan<br/>checks + rules]
P --> OUT[findings (JSON / SARIF)]
Use it from any AI stack
obscan is interoperable with every popular way of using AI:
- MCP server —
obscan mcp(Claude Desktop, Cursor, Cognis.Studio, uncensored-fleet) - OpenAI-compatible / JSON — pipe
obscan scan . --format jsoninto any agent or LLM - LangChain · CrewAI · AutoGen · LlamaIndex — wrap the CLI/JSON as a tool in one line
- CI / scripts — exit codes + SARIF for non-AI pipelines
How it compares
| Cognis obscan | OpenAPI Spectral | |
|---|---|---|
| Self-hostable, no account | ✅ | varies |
| Single command, zero config | ✅ | ⚠️ |
| JSON + SARIF for CI | ✅ | varies |
| MCP-native (AI agents) | ✅ | ❌ |
| Polyglot ports (JS/Go/Rust) | ✅ | ❌ |
| Open license | ✅ COCL | varies |
Built in the spirit of OpenAPI Spectral / FAPI conformance suite, re-framed the Cognis way. Missing a credit? Open a PR.
Integrations
Pipes into your stack: SARIF for code-scanning, JSON for anything, an MCP server (obscan mcp) for AI agents, and a webhook forwarder for SIEM/Slack/Jira. See docs/INTEGRATIONS.md.
Install — every way, every platform
pip install "git+https://github.com/cognis-digital/obscan.git" # pip (works today)
pipx install "git+https://github.com/cognis-digital/obscan.git" # isolated CLI
uv tool install "git+https://github.com/cognis-digital/obscan.git" # uv
pip install cognis-obscan # PyPI (when published)
docker run --rm ghcr.io/cognis-digital/obscan:latest --help # Docker
brew install cognis-digital/tap/obscan # Homebrew tap
curl -fsSL https://raw.githubusercontent.com/cognis-digital/obscan/main/install.sh | sh
| Linux | macOS | Windows | Docker | Cloud |
|---|---|---|---|---|
scripts/setup-linux.sh |
scripts/setup-macos.sh |
scripts/setup-windows.ps1 |
docker run ghcr.io/cognis-digital/obscan |
DEPLOY.md (AWS/Azure/GCP/k8s) |
Related Cognis tools
- panhound — Scans code, logs, fixtures, and S3 buckets for leaked PANs (Luhn-validated card numbers) and CVVs before they hit prod.
- fraudlens — Replays a stream of transactions against pluggable fraud rules and ML scorers, emitting precision/recall and alert volume from the terminal.
- ledgerproof — Verifies double-entry ledger integrity and tamper-evidence by checking balance invariants and hash-chained journal entries.
- iso20022 — Validates, lints, and diffs ISO 20022 / pacs / camt payment messages and translates legacy MT into MX with schema-aware errors.
- tokenvault — Self-hostable PCI tokenization microservice and CLI that swaps PANs for format-preserving tokens and proves no raw card data persists.
- sanctscan — Screens counterparties and transactions against OFAC/EU/UN sanctions lists with fuzzy name matching and explainable hit scoring.
Explore the suite → 🗂️ all 170+ tools · ⭐ awesome-cognis · 🔗 cognis-sources · 🤖 uncensored-fleet · 🧠 engram
Contributing
PRs, new rules, and demo scenarios are welcome under the collaboration-pull model — see CONTRIBUTING.md and SECURITY.md.
⭐ If
obscansaved you time, star it — it genuinely helps others find it.
Interoperability
{} composes with the 300+ tool Cognis suite — JSON in/out and a shared
OpenAI-compatible /v1 backbone. See INTEROP.md for the
suite map, composition patterns, and reference stacks.
License
Source-available under the Cognis Open Collaboration License (COCL) v1.0 — free for personal, internal-evaluation, research, and educational use; commercial / production use requires a license ([email protected]). See LICENSE.
Installing Obscan
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/cognis-digital/obscanFAQ
Is Obscan MCP free?
Yes, Obscan MCP is free — one-click install via Unyly at no cost.
Does Obscan need an API key?
No, Obscan runs without API keys or environment variables.
Is Obscan hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Obscan in Claude Desktop, Claude Code or Cursor?
Open Obscan on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Obscan with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
