Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCP tools for semantic search in github/advisory-database
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Both catalog entries mention github.
MCP design system validator for agentic coding. Detects design drift in agent-built UI.
Both catalog entries mention github.
GitHub MCP proxy server — bridges the official @modelcontextprotocol/server-github with Alfe OAuth credentials (Pattern A multi-account)
Both catalog entries mention github.
GitHub MCP proxy server — bridges the official @modelcontextprotocol/server-github with Alfe OAuth credentials (Pattern A multi-account)
Fetched from the repository for this visit.
MCP server for querying GitHub Security Advisories from a local cloned advisory database.
Two-Tier Design:
┌─────────────────────────────────────┐
│ MCP Server (stdio or HTTP) │ Port: 18006 (HTTP mode)
│ - list_advisories tool │
│ - get_advisory tool │
└──────────┬──────────────────────────┘
│ calls internally
┌──────────▼──────────────────────────┐
│ Local Express REST API │ Port: 18005
│ GET /health │
│ GET /advisories │
│ GET /advisories/:ghsa_id │
│ GET /search?q=<query> │
└──────────┬──────────────────────────┘
│ reads from
┌──────────▼──────────────────────────┐
│ LocalRepositoryDataSource │
│ Reads JSON files from: │
│ external/advisory-database/ │
└─────────────────────────────────────┘
For users who just want to use the MCP server in VS Code:
git clone https://github.com/microsoft/github-advisory-mcp.git
cd github-advisory-mcp
npm install
npm run build
.vscode/mcp.json is pre-configured:{
"servers": {
"advisory": {
"command": "node",
"args": ["${workspaceFolder}/dist/index.js"],
"type": "stdio",
"env": {
"ADVISORY_REPO_PATH": "${workspaceFolder}/external/advisory-database"
}
}
}
}
Reload VS Code - Copilot will automatically:
list_advisories, get_advisoryTest in Copilot Chat:
@workspace Find high-severity npm advisories related to express
Done! The MCP server runs automatically when Copilot needs it.
npm install
npm run build
# Linux/Mac (manual pre-clone)
./scripts/setup-advisory-database.sh
# Windows (manual pre-clone)
git clone --depth=1 https://github.com/github/advisory-database.git external/advisory-database
The database will auto-clone on first MCP tool call if not present.
Windows:
.\Start.ps1
# or with custom ports:
.\Start.ps1 -McpPort 18006 -ApiPort 18005
Manual Start:
$env:ADVISORY_REPO_PATH = "C:\path\to\advisory-database"
$env:MCP_PORT = "18006"
$env:ADVISORY_API_PORT = "18005"
node dist\http-server.js
ADVISORY_REPO_PATH=/path/to/advisory-database node dist/index.js
After setup, test in VS Code Copilot Chat:
@workspace /tests What tools does the advisory MCP server provide?
Or query advisories directly:
@workspace Find critical npm advisories from 2024
@workspace Get details for GHSA-jc85-fpwf-qm7x
npx vitest run test/unit # fast, hermetic unit tests (this is what `npm test` runs)
npm run test:e2e # end-to-end MCP tests (needs the advisory database)
# MCP Server Health
Invoke-RestMethod http://localhost:18006/health
# Local API Health
Invoke-RestMethod http://localhost:18005/health
Low-level REST and raw MCP JSON-RPC request recipes (health checks, session
initialize, tools/list, tools/call) live in docs/http-api.md.
| Variable | Default | Description |
|---|---|---|
ADVISORY_REPO_PATH | ./external/advisory-database | Path to cloned advisory-database repository |
MCP_PORT | 18006 | Port for MCP HTTP server |
ADVISORY_API_PORT | 18005 | Port for local REST API |
ADVISORY_API_HOST | 127.0.0.1 | Host for local REST API |
ADVISORY_API_BASE | http://localhost:18005 | Base URL for MCP tools to call local API |
List security advisories with optional filters.
Parameters:
ghsa_id (string): GHSA identifiercve_id (string): CVE identifierecosystem (enum): Package ecosystem (npm, pip, maven, etc.)severity (enum): Severity level (low, medium, high, critical, unknown)cwes (string): Comma-separated CWE identifiersis_withdrawn (boolean): Filter withdrawn advisoriesaffects (string): Package name filterpublished (string): Published date filterupdated (string): Updated date filterper_page (number): Results per page (max 100)direction (enum): Sort direction (asc, desc)sort (enum): Sort field (updated, published)Example:
{
"ecosystem": "npm",
"severity": "critical",
"per_page": 10
}
Get detailed information about a specific advisory.
Parameters:
ghsa_id (string, required): GHSA identifier (e.g., GHSA-xxxx-xxxx-xxxx)Example:
{
"ghsa_id": "GHSA-jc85-fpwf-qm7x"
}
All MCP tool parameters are validated using Zod schemas:
list_advisories validation:
ecosystem: Enum of valid ecosystems (npm, pip, maven, etc.) - prevents injectionseverity: Enum (low, medium, high, critical, unknown) - prevents injectionper_page: Number constrained to 1-100 max - prevents resource exhaustioncwes: String pattern matching for CWE identifiers - validates formatget_advisory validation:
ghsa_id: Pattern match GHSA-xxxx-xxxx-xxxx - prevents path traversalFile System Protection:
Current: No rate limiting (stdio transport = single local user)
Considerations:
Future (HTTP mode): add rate limiting if you expose the server beyond localhost — see docs/integration.md.
✅ Path validation for script execution (prevents command injection)
✅ Zod schema validation (prevents type confusion attacks)
✅ Session timeout (prevents resource leaks)
✅ Read-only database access (no write exposure)
✅ Enum validation for critical parameters (prevents injection)
⚠️ No rate limiting (stdio mode = trusted local user)
⚠️ No authentication (stdio mode = local process trust model)
The stdio MCP server can be driven from any MCP client. A Python client example and an HTTP rate-limiting snippet are in docs/integration.md.
Issue: git clone fails for advisory-database
fatal: unable to access 'https://github.com/github/advisory-database.git/': Could not resolve host
Solutions:
ping github.comgit clone --depth=1 https://github.com/github/advisory-database.git external/advisory-databaseexport ADVISORY_REPO_PATH=/path/to/existing/advisory-databaseTiming: Initial clone takes 2-5 minutes (hundreds of thousands of files)
Issue: Error: EADDRINUSE: address already in use
Solution:
# Check what's using the port
lsof -i :18005 # Local API
lsof -i :18006 # MCP server
# Kill process
kill -9 <PID>
Issue: Bash script fails on Windows
./scripts/setup-advisory-database.sh
# bash: ./scripts/setup-advisory-database.sh: No such file or directory
Solution: Use Git Bash or WSL, or manual clone:
git clone --depth=1 https://github.com/github/advisory-database.git external/advisory-database
Issue: Copilot doesn't see advisory MCP tools
Solution:
.vscode/mcp.json exists in workspace rootCtrl+Shift+P → "Developer: Reload Window"npm run build and verify dist/index.js existsCtrl+Shift+P → "Developer: Open Logs Folder"Symptom: Slow advisory queries (>5 seconds)
Solutions:
per_page parameter to limit results: per_page: 10ecosystem: "npm"Performance Benchmarks:
Automated Updates:
The advisory database auto-updates on server start via git pull in setup script.
Manual Update:
cd external/advisory-database
git pull origin main
Update Frequency: GitHub updates advisory-database multiple times daily
setup-advisory-database.sh doesn't work on WindowsADVISORY_REPO_PATHStart.ps1 script for convenient startup--depth=1) recommendedGitHub Actions Workflows:
Build and Test (.github/workflows/build.yml)
main, PRs to mainnpm ci → build → verify artifacts → unit tests with coverage. End-to-end tests run on the main branch.Copilot PR Review (.github/workflows/copilot-review.yml)
Watch Mode:
npm run dev
Clean Build:
npm run clean
npm run build
File Structure:
services/mcp/advisory/
├── src/
│ ├── index.ts # stdio entry point
│ ├── http-server.ts # HTTP streaming server
│ ├── server.ts # MCP server factory
│ ├── local-server.ts # Express REST API
│ ├── datasources/
│ │ └── local-repository.ts # LocalRepositoryDataSource
│ ├── tools/
│ │ └── advisories.ts # MCP tools (list/get)
│ └── types/
│ └── data-source.ts # TypeScript interfaces
├── dist/ # Compiled JavaScript
├── external/
│ └── advisory-database/ # Git submodule (cloned)
├── scripts/
│ └── setup-advisory-database.sh
├── package.json
├── tsconfig.json
├── Start.ps1 # Windows startup script
└── README.md
✅ Working:
⏳ Not Yet Tested:
This project does not accept external contributions (pull requests) at this time. Only verified committers from the Microsoft GitHub organization may contribute code.
If you would like to get involved:
See CONTRIBUTING.md for details.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Loading reviews...
GitHub checked 255h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.