Metadata-Version: 2.4
Name: snyk-mcp-server
Version: 0.1.0
Summary: MCP server for Snyk vulnerability data
Author-email: CloudTarkK <tarkk.8535@gmail.com>
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: fastmcp>=0.2.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Description-Content-Type: text/markdown

# Snyk MCP Server

Custom MCP server for fetching vulnerability data from Snyk REST API.

## Installation via uvx

```bash
uvx snyk-mcp-server@latest
```

## MCP Configuration

Add to your MCP configuration:

```json
{
  "mcpServers": {
    "snyk": {
      "command": "uvx",
      "args": ["snyk-mcp-server@latest"],
      "env": {
        "SNYK_API_TOKEN": "your_snyk_api_token_here",
        "SNYK_API_VERSION": "2024-06-21"
      }
    }
  }
}
```

## Development

```bash
# Clone and install
git clone <repo>
cd snyk-mcp
uv sync

# Run locally
uv run python -m snyk_mcp_server.main

# Build package
uv build
```

## MCP Tools

- `fetch_org_vulnerabilities(org_id: str)` - Get all vulnerabilities for an organization
- `fetch_package_vulnerabilities(org_id: str, purl: str)` - Get vulnerabilities for a specific package

## Environment Variables

- `SNYK_API_TOKEN` - Required Snyk API token
- `SNYK_API_VERSION` - API version (default: 2024-06-21)
