source-check-mcp
README.md
# source-check-mcp
An MCP server that checks security facts against primary sources **before** an AI agent writes them down.
Ask it about a CVE or GitHub advisory ID and it asks OSV.dev, the GitHub Advisory Database and NVD at the same time. It returns what each one says (severity, publish date, affected and fixed versions) with a link you can open, and flags where they disagree.
> Status: early (v0.1). `check_advisory` works. Package version lookups (Packagist, npm, PyPI) and a whole-draft checker are next.
## Why I built it
On 3 December 2026 my AI-drafted blog post cited **CVE-2026-142644**, a denial-of-service issue in Laravel's `decimal` validation rule. The fact-check step looked in the GitHub Advisory Database, found nothing, and the CVE was cut from the post as made up.
It was real. It had been in NVD and OSV since the evening of 2 December. GitHub published its advisory (GHSA-h84h-g58v-xg2h) about 22 hours later, after the check.
So the lesson wasn't only "AI makes things up". It was also "one database is not the truth". This server checks several sources at once, and it never calls an ID fake: if no source has it, the answer is "not found, unverified as of this time".
## Example
```
CVE-2026-142644 / GHSA-h84h-g58v-xg2h: CONFIRMED (checked 2026-12-04T16:49:41Z)
- osv: found, severity moderate, published 2026-12-02T22:54:07Z <https://osv.dev/vulnerability/CVE-2026-142644>
- github: found, severity medium 5.3, published 2026-12-03T21:08:03Z <https://github.com/advisories/GHSA-h84h-g58v-xg2h>
- nvd: found, severity medium 5.3, published 2026-12-02T23:18:43Z <https://nvd.nist.gov/vuln/detail/CVE-2026-142644>
Affected:
- Packagist laravel/framework: >= 13.0.0, < 13.43.0 (fixed in 13.43.0)
- Packagist laravel/framework: from the first release, < 12.73.0 (fixed in 12.73.0)
Summary: Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
```
An ID that no source has:
```
CVE-2026-999999: NOT_FOUND (checked 2026-12-04T16:49:45Z)
- osv: not found
- github: not found
- nvd: not found
Note: Not found in OSV, the GitHub Advisory Database or NVD as of 2026-12-04T16:49:45Z. Treat it as
unverified, not as proof that it is fake: very new records can take time to appear. Do not cite it
until a source has it.
```
## Tools
| Tool | What it checks | Sources |
|---|---|---|
| `check_advisory(id)` | Does this CVE / GHSA exist? Severity, publish date, affected and fixed versions, disagreements between sources | OSV.dev, GitHub Advisory Database, NVD |
Verdicts: `confirmed` (at least one source has it), `not_found` (every source answered and none has it), `unknown` (nothing confirmed it and at least one source could not be reached).
Planned: `package_versions` (real release versions and dates from Packagist, npm, PyPI), `is_version_affected`, and `check_claims` (pull every CVE ID and version out of a draft and check each one).
## Install
Requires Node.js 20 or newer. Not on npm yet, so build from source:
```bash
git clone https://github.com/tallal-saghir/source-check-mcp.git
cd source-check-mcp
npm ci && npm run build
```
**Claude Code**
```bash
claude mcp add source-check -- node /path/to/source-check-mcp/dist/index.js
```
**Claude Desktop** (`claude_desktop_config.json`)
```json
{
"mcpServers": {
"source-check": {
"command": "node",
"args": ["/path/to/source-check-mcp/dist/index.js"]
}
}
}
```
Optional environment variables: `GITHUB_TOKEN` (higher GitHub API rate limit) and `NVD_API_KEY` (higher NVD rate limit). Neither is required.
## Development
```bash
npm test # offline: every HTTP call is answered from recorded responses in test/fixtures/
npm run typecheck
npm run build
npx @modelcontextprotocol/inspector node dist/index.js # try it by hand
```
Tests cover the cases that matter: all sources agree, one source lags behind the others, no source has the ID, and a source is down.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues