GitHub TODO Scanner MCP server

Scans GitHub repositories for TODO comments in code files, presenting findings through both a web interface and RESTful API for tracking outstanding tasks and conducting code quality reviews.
Back to servers
Setup instructions
Provider
Startr
Release date
Apr 21, 2025
Language
Python
Stats
1 star

The TODO Scanner is a simple yet powerful tool that identifies TODOs in your code repositories. It scans git repositories for common TODO patterns in comments and presents them in a clean interface, helping you track tasks that might otherwise be forgotten as your codebase grows.

Installation

Get started with TODO Scanner in just a few steps:

git clone https://github.com/yourusername/repo_scanner.git
cd repo_scanner
pip install -r requirements.txt

Usage

Web Interface

Launch the web interface with:

python app.py

Then navigate to http://localhost:5000 in your browser, enter a git repository URL, and the tool will display all TODOs found in that repository.

Cloudflare Quick Tunnels

Share your TODO Scanner instance with others without configuring firewalls or opening ports:

./run_with_cloudflared.sh

This script starts the application and creates a temporary Cloudflare tunnel, providing you with a public URL. The tunnel terminates when the script ends, maintaining your data privacy.

API

Integrate TODO Scanner into your workflows using its API:

curl -X POST http://localhost:5000/api/mpco/scan_repository \
  -H "Content-Type: application/json" \
  -d '{"repo_url": "https://github.com/username/repository.git"}'

Model Context Protocol Support

TODO Scanner implements the Model Context Protocol (MCP) standard, making it compatible with AI assistants and automated tools.

Access the manifest at:

  • GET /api/mpco/manifest

View the OpenAPI specification at:

  • GET /api/mpco/openapi.json

The API documentation is dynamically generated, ensuring it always matches the implementation.

Response Format

Here's what a typical response from the API looks like:

{
  "repo_url": "https://github.com/username/repository.git",
  "repo_name": "repository",
  "todo_count": 42,
  "todos": [
    {
      "file_path": "src/main.py",
      "line_num": 24,
      "todo_text": "# TODO: Fix this hack when we have time",
      "next_line": "def temporary_solution():"
    }
  ],
  "web_url": "http://localhost:5000/scan/https://github.com/username/repository.git"
}

This output provides the repository details, total count of TODOs found, and a list of each TODO with its location, content, and context.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "repo-scanner" '{"command":"python","args":["app.py"],"displayName":"GitHub TODO Scanner","description":"A tool that scans git repositories for TODO comments and displays them in a clean interface","apiBase":"http://localhost:5000/api/mpco"}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "repo-scanner": {
            "command": "python",
            "args": [
                "app.py"
            ],
            "displayName": "GitHub TODO Scanner",
            "description": "A tool that scans git repositories for TODO comments and displays them in a clean interface",
            "apiBase": "http://localhost:5000/api/mpco"
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "repo-scanner": {
            "command": "python",
            "args": [
                "app.py"
            ],
            "displayName": "GitHub TODO Scanner",
            "description": "A tool that scans git repositories for TODO comments and displays them in a clean interface",
            "apiBase": "http://localhost:5000/api/mpco"
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later