oss-fuzz-mcp

sam5epi0l/oss-fuzz-mcp

3.1

If you are the rightful owner of oss-fuzz-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The OSS-Fuzz MCP Server is a Model Context Protocol server that facilitates interaction with OSS-Fuzz's tools through structured commands, enabling AI agents and other tools to efficiently manage fuzzing tasks.

OSS-Fuzz MCP Server

This project provides a Model Context Protocol (MCP) server that wraps OSS-Fuzz's helper tools. It enables AI agents and other tools to interact with OSS-Fuzz through structured commands.

Features

  • ✅ Project generation and management
  • ✅ Docker image building and management
  • ✅ Fuzzer compilation and execution
  • ✅ Code coverage analysis
  • ✅ Corpus management (GCS integration)
  • ✅ GitHub Actions integration (CIFuzz)

Requirements

  1. A local clone of the OSS-Fuzz repository
  2. Python 3.7+
  3. Docker
  4. gsutil (for corpus management)

Install dependencies:

pip install -r requirements.txt

File Structure

FilePurpose
server.pyMain FastMCP server exposing OSS-Fuzz tools
requirements.txtPython package dependencies

Setup and Usage

  1. Start the MCP server:

    python server.py
    
  2. Configure the OSS-Fuzz directory path:

    curl -X POST http://localhost:8000/tool/configure_oss_fuzz_path \
      -H "Content-Type: application/json" \
      -d '{"path": "/path/to/oss-fuzz"}'
    
  3. The server exposes various tools for:

    • Generating new projects
    • Building and running fuzzers
    • Managing corpora
    • Generating coverage reports
    • Setting up GitHub Actions integration