npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

gc-sqlmap-mcp

v1.1.6

Published

Model Context Protocol (MCP) server for interacting with SQLMap SQL injection tool

Readme

SQLMap MCP

SQLMap MCP is a bridge that connects SQLMap, the popular SQL injection detection and exploitation tool, with the Model Context Protocol (MCP) ecosystem.

Overview

SQLMap MCP enables seamless integration of SQLMap's powerful SQL injection testing capabilities into MCP-compatible applications and AI-powered workflow systems. This bridge allows you to leverage SQLMap functionality through a standardized protocol, making it easier to incorporate into automated security testing pipelines or AI assistant capabilities.

Features

  • Full SQLMap functionality exposed through MCP
  • Simple configuration and setup
  • Easy integration with other MCP-compatible tools and systems
  • Standardized input/output handling

Installation

Prerequisites

  • Node.js (v16 or higher)
  • SQLMap installed on your system

Installation

# Install globally
npm install -g gc-sqlmap-mcp

# Or run directly without installing
npx gc-sqlmap-mcp

Configuration

This server requires the path to the SQLMap executable to be set via the SQLMAP_PATH environment variable.

Example:

# Linux/macOS
export SQLMAP_PATH=/usr/local/bin/sqlmap

# Windows
set SQLMAP_PATH=C:\path\to\sqlmap\sqlmap.py

Usage

Command Line

# With SQLMAP_PATH environment variable set
npx gc-sqlmap-mcp

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "sqlmap": {
      "command": "npx",
      "args": ["-y", "gc-sqlmap-mcp"],
      "env": {
        "SQLMAP_PATH": "C:\\path\\to\\sqlmap\\sqlmap.py"
      }
    }
  }
}

With Other MCP Clients

For other MCP clients, you can configure them to use this server with:

SQLMAP_PATH=/path/to/sqlmap npx gc-sqlmap-mcp

Running SQLMap Tests

Once configured, you can run SQLMap tests through the MCP interface using the do-sqlmap tool:

// Example of calling SQLMap through MCP
const result = await mcp.tools.invoke("do-sqlmap", {
  url: "http://example.com/vulnerable.php?id=1",
  sqlmap_args: ["--batch", "--dbs"]
});

Available Options

SQLMap MCP supports all standard SQLMap parameters. See the SQLMap documentation for a full list of available options.

Examples

Basic Database Enumeration

const result = await mcp.tools.invoke("do-sqlmap", {
  url: "http://vulnerable-website.com/page.php?id=1",
  sqlmap_args: ["--batch", "--dbs"]
});

Targeted Table Dump

const result = await mcp.tools.invoke("do-sqlmap", {
  url: "http://vulnerable-website.com/page.php?id=1",
  sqlmap_args: [
    "--batch",
    "-D", "target_database",
    "-T", "users",
    "--dump"
  ]
});

Integration with AI Assistants

SQLMap MCP is designed to work seamlessly with AI assistants that support the Model Context Protocol, enabling natural language interactions for security testing tasks.

Example conversation with an AI assistant:

User: Test this website for SQL injection: http://testphp.vulnweb.com/artists.php?artist=1
AI: I'll help you test that website for SQL injection vulnerabilities using SQLMap.

[AI uses SQLMap MCP to run the test and returns the results]

SQLMap has detected a potential SQL injection vulnerability in the 'artist' parameter...

Security Considerations

  • Always obtain proper authorization before testing websites for vulnerabilities
  • Use responsibly and ethically
  • Consider using --random-agent and proxies for more discreet testing

Troubleshooting

If you encounter issues:

  1. Verify SQLMap is properly installed and accessible
  2. Check the path to the SQLMap executable in your configuration
  3. Ensure proper permissions are set for execution
  4. Review server logs for detailed error messages

License

Apache-2.0

Acknowledgments

  • SQLMap Project: https://github.com/sqlmapproject/sqlmap
  • Model Context Protocol: https://github.com/modelcontextprotocol