Skip to main content
Glama
SQL Injection MCP Server

SQL Injection MCP Server

by vivashu27

SQL Injection MCP Server

A Model Context Protocol (MCP) server for discovering SQL injection vulnerabilities in web applications.

Features

  • Multiple Injection Types: Error-based, Time-based, Boolean-based, Union-based, Blind SQL injection

  • Database Support: MySQL, MSSQL, PostgreSQL, Oracle, SQLite

  • HTTP Methods: GET and POST parameter testing

  • Authentication: Custom headers, cookies, Bearer tokens

  • Proxy Support: Route traffic through Burp Suite or other proxies

  • WAF Bypass: URL encoding, Hex encoding, Unicode, Case swapping, Comment injection

  • Custom Payloads: Load payloads from external files

Related MCP server: operant-mcp

Installation

# Using uv (recommended)
cd SQLinjector_MCP
uv sync

# Using pip
pip install -e .

Usage

Running the Server

# Using uv
uv run sqli-mcp

# Or directly
python -m sqli_mcp.server

MCP Client Configuration

Claude Desktop / Claude Code

Add to your MCP configuration:

{
  "mcpServers": {
    "sqli-scanner": {
      "command": "uv",
      "args": ["--directory", "C:/path/to/SQLinjector_MCP", "run", "sqli-mcp"]
    }
  }
}

LM Studio / Cursor

Configure the server URL after starting with HTTP transport:

uv run python -c "from sqli_mcp.server import mcp; mcp.run(transport='streamable-http')"

Then connect to http://localhost:8000/mcp

Available Tools

Tool

Description

scan_url

Full URL scan for SQLi in all detected parameters

scan_get_parameter

Test specific GET parameter

scan_post_parameter

Test specific POST parameter

test_payload

Test a single payload against a target

list_payloads

List available built-in payloads

load_custom_payloads_from_file

Load payloads from external file

get_waf_bypass_payloads

Get WAF bypass variants of a payload

get_scan_result

Retrieve previous scan results

Bulk Scanning

scan_urls_batch

Scan multiple URLs (newline-separated, up to 500)

scan_urls_from_file

Scan URLs from a file (one per line)

get_batch_result

Retrieve batch scan results

get_vulnerable_urls

Get only vulnerable URLs from batch

Examples

Basic GET Parameter Scan

Use scan_url with:
- target_url: "http://vulnerable-site.com/page?id=1"

Authenticated POST Scan

Use scan_post_parameter with:
- target_url: "http://site.com/login"
- post_data: "username=admin&password=test"
- parameter: "username"
- cookies: "session=abc123"
- bearer_token: "your-jwt-token"

Using Burp Suite Proxy

Use scan_url with:
- target_url: "http://target.com/page?id=1"
- proxy_url: "http://127.0.0.1:8080"
- verify_ssl: false

WAF Bypass

Use scan_url with:
- target_url: "http://target.com/page?id=1"
- waf_bypass: "comment_injection"

Bulk URL Scanning

Scan multiple URLs from a list:

Use scan_urls_batch with:
- urls: "http://site1.com/page?id=1
http://site2.com/search?q=test
http://site3.com/user?uid=5"
- concurrency: 10
- waf_bypass: "url_encode"

Scan URLs from a file:

Use scan_urls_from_file with:
- file_path: "C:/path/to/urls.txt"
- concurrency: 5
- proxy_url: "http://127.0.0.1:8080"

Get vulnerable URLs only:

Use get_vulnerable_urls with:
- batch_id: "abc12345"

Custom Payloads

Create a text file with one payload per line:

# my_payloads.txt
' OR '1'='1
" OR "1"="1
' UNION SELECT NULL--

Then load with:

Use load_custom_payloads_from_file with:
- file_path: "C:/path/to/my_payloads.txt"
- injection_type: "union_based"
- name: "my_custom"

Security Notice

⚠️ This tool is intended for authorized security testing only. Always obtain proper authorization before testing any system for vulnerabilities. Unauthorized access to computer systems is illegal.

License

MIT

Available Tools

13 tools
continue_batchA

Continue scanning remaining URLs from a previous batch. Use this when scan_urls_batch returns has_more=True.

Args: batch_id: Batch ID from a previous scan_urls_batch call

Returns: Next batch of scan results

Inputs: batch_id (required).

get_batch_resultA

Retrieve a previous batch scan result by ID.

Args: batch_id: Batch ID from a previous batch scan

Returns: Batch scan result details

Inputs: batch_id (required).

get_scan_resultB

Retrieve a previous scan result by ID.

Args: scan_id: Scan ID from a previous scan

Returns: Scan result details

Inputs: scan_id (required).

get_vulnerable_urlsB

Get only the vulnerable URLs from a batch scan.

Args: batch_id: Batch ID from a previous batch scan

Returns: List of vulnerable URLs with their scan details

Inputs: batch_id (required).

get_waf_bypass_payloadsC

Get all WAF bypass variants of a payload.

Args: payload: Original SQL injection payload

Returns: Dictionary of bypass techniques and their encoded payloads

Inputs: payload (required).

list_payloadsB

List available SQL injection payloads.

Args: category: Filter by category (error_based, time_based, boolean_based, union_based, blind) database: Filter by database type (mysql, mssql, postgresql, oracle, sqlite, generic) limit: Maximum number of payloads to return

Returns: List of available payloads with descriptions

Inputs: category, database, limit.

load_custom_payloads_from_fileA

Load custom SQL injection payloads from a file.

Args: file_path: Absolute path to the payload file (one payload per line) injection_type: Injection type for loaded payloads database_type: Database type for loaded payloads name: Name to cache the payloads under for later use

Returns: Information about loaded payloads

Inputs: file_path (required), injection_type, database_type, name.

scan_get_parameterA

Test a specific GET parameter for SQL injection.

Args: target_url: Target URL (e.g., http://example.com/page?id=1&name=test) parameter: Specific parameter name to test (e.g., id) injection_types: Comma-separated injection types to test database_types: Comma-separated database types to test
headers: Custom headers as key:value pairs separated by | cookies: Cookies as key=value pairs separated by ; bearer_token: Bearer token for Authorization header proxy_url: Proxy URL (e.g., http://127.0.0.1:8080 for Burp Suite) verify_ssl: Verify SSL certificates waf_bypass: WAF bypass technique

Returns: Scan results for the specified parameter

Inputs: target_url (required), parameter (required), injection_types, database_types, +6 more.

scan_post_parameterA

Test a specific POST parameter for SQL injection.

Args: target_url: Target URL post_data: POST body data as key=value pairs separated by & (e.g., username=admin&password=test) parameter: Specific parameter name in POST data to test injection_types: Comma-separated injection types to test database_types: Comma-separated database types to test headers: Custom headers as key:value pairs separated by | cookies: Cookies as key=value pairs separated by ; bearer_token: Bearer token for Authorization header proxy_url: Proxy URL for Burp Suite or other proxies verify_ssl: Verify SSL certificates waf_bypass: WAF bypass technique

Returns: Scan results for the specified POST parameter

Inputs: target_url (required), post_data (required), parameter (required), injection_types, +7 more.

scan_urlA

Scan a URL for SQL injection vulnerabilities in all detected parameters.

Args: target_url: Target URL with query parameters to scan (e.g., http://example.com/page?id=1) method: HTTP method - GET or POST post_data: POST data as key=value pairs separated by & (e.g., username=admin&password=test) injection_types: Comma-separated injection types to test (error_based, time_based, boolean_based, union_based, blind) database_types: Comma-separated database types to test (mysql, mssql, postgresql, oracle, sqlite, generic) headers: Custom headers as key:value pairs separated by | (e.g., X-Custom:value|X-API-Key:abc123) cookies: Cookies as key=value pairs separated by ; (e.g., session=abc123;token=xyz) bearer_token: Bearer token for Authorization header proxy_url: Proxy URL for Burp Suite or other proxies (e.g., http://127.0.0.1:8080) verify_ssl: Verify SSL certificates (set to false when using proxy) waf_bypass: WAF bypass technique (none, url_encode, double_url_encode, hex_encode, unicode, case_swap, comment_injection) timeout: Request timeout in seconds delay_threshold: Delay threshold in seconds for time-based detection

Returns: Scan results with vulnerabilities found

Inputs: target_url (required), method, post_data, injection_types, +9 more.

scan_urls_batchA

Scan multiple URLs for SQL injection vulnerabilities in batch. Use quick_mode=True (default) for faster scans that won't timeout.

Args: urls: Newline-separated list of URLs to scan method: HTTP method - GET or POST injection_types: Comma-separated injection types (default: error_based only in quick_mode) database_types: Comma-separated database types (default: generic,mysql in quick_mode) headers: Custom headers as key:value pairs separated by | cookies: Cookies as key=value pairs separated by ; bearer_token: Bearer token for Authorization header proxy_url: Proxy URL for Burp Suite or other proxies verify_ssl: Verify SSL certificates waf_bypass: WAF bypass technique concurrency: Number of concurrent scans (1-10, default 3) timeout: Request timeout in seconds per URL (default 5) quick_mode: Use quick scan with fewer payloads (default True, recommended for many URLs) max_urls_per_batch: Max URLs to scan in one call (default 10, use continue_batch for more)

Returns: Batch scan results. If more URLs remain, use continue_batch with the batch_id.

Inputs: urls (required), method, injection_types, database_types, +10 more.

scan_urls_from_fileB

Scan multiple URLs from a file for SQL injection vulnerabilities. Returns results in chunks to avoid timeouts. Use continue_batch to get more results.

Args: file_path: Absolute path to file containing URLs (one URL per line) method: HTTP method - GET or POST injection_types: Comma-separated injection types to test database_types: Comma-separated database types to test headers: Custom headers as key:value pairs separated by | cookies: Cookies as key=value pairs separated by ; bearer_token: Bearer token for Authorization header proxy_url: Proxy URL for Burp Suite or other proxies verify_ssl: Verify SSL certificates waf_bypass: WAF bypass technique concurrency: Number of concurrent scans (1-10, default 3) timeout: Request timeout in seconds per URL (default 5) quick_mode: Use quick scan with fewer payloads (default True) max_urls_per_batch: Max URLs to scan in one call (default 10)

Returns: Batch scan results. If more URLs remain, use continue_batch with the batch_id.

Inputs: file_path (required), method, injection_types, database_types, +10 more.

test_payloadA

Test a specific SQL injection payload against a target.

Args: target_url: Target URL payload: SQL injection payload to test parameter: Parameter to inject the payload into method: HTTP method (GET or POST) post_data: POST data if method is POST headers: Custom headers as key:value pairs separated by | cookies: Cookies as key=value pairs separated by ; bearer_token: Bearer token for Authorization header proxy_url: Proxy URL for Burp Suite verify_ssl: Verify SSL certificates waf_bypass: WAF bypass technique to apply to payload

Returns: Test result with response details

Inputs: target_url (required), payload (required), parameter (required), method, +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: scanning single URLs/parameters, batch scanning, retrieving results, managing payloads, and testing specific payloads. No two tools are ambiguous in their function.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern (e.g., scan_url, list_payloads, get_scan_result). No mixing of casing or irregular verbs.

    Tool Count5/5

    13 tools is well-scoped for a SQL injection scanning server, covering scanning, batch operations, result retrieval, payload management, and custom payload loading without being excessive.

    Completeness4/5

    The tool set covers the full scanning lifecycle: single/batch scanning, parameter-specific testing, result retrieval, payload management, and WAF bypass. Minor gap: no tool for clearing or aggregating results beyond batch retrieval.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive MCP server for automated bug bounty hunting and security reconnaissance, featuring over 28 specialized tools for subdomain discovery, vulnerability scanning, and traffic analysis. It integrates automated scope validation and professional reporting across multiple platforms like HackerOne and Bugcrowd to streamline security testing.
      5
      -
    • A
      license
      A
      quality
      D
      maintenance
      A comprehensive security testing MCP server providing 51 tools for penetration testing, network forensics, memory analysis, and vulnerability assessment. It enables automated security audits and technical investigations across web applications, cloud environments, and network captures.
      51
      27
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A security pentesting MCP server with 89 tools across 10 categories, enabling comprehensive reconnaissance, web security, OSINT, and exploitation tasks. It features a native Windows/WSL bridge for Kali Linux tools and scope-aware permission tiers for safe and efficient scanning.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A secure multi-database MCP server supporting MySQL, PostgreSQL, and SQLite with read-only enforcement, SQL injection prevention, and tools for schema analysis, performance optimization, and visualization.
      4
      -