Skip to main content
Glama
@mhdd_24/api-security-mcp

@mhdd_24/api-security-mcp

by Mhdd-24

@mhdd_24/api-security-mcp

Identify API security weaknesses.

Same architecture as @mhdd_24/sublime-mcp.

Full documentation: docs/WIKI.md


How it works (30 seconds)

You (chat) → MCP client → api-security-mcp → API Security APIs / CLIs / local tools

Related MCP server: middleBrick

Prerequisites

Requirement

Notes

Node.js 18+

ESM TypeScript MCP server

Credentials / CLIs

See environment variables below


Install

Option A — npm (after publish)

npm install -g @mhdd_24/api-security-mcp

Option B — npx

npx @mhdd_24/api-security-mcp

Option C — clone and build

git clone https://github.com/Mhdd-24/API-Security-MCP.git
cd API-Security-MCP
npm install
npm run build
node dist/index.js

Configure Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "apisec": {
      "command": "npx",
      "args": ["-y", "@mhdd_24/api-security-mcp"],
      "env": {
        "PROJECT_ROOT": "..."
      }
    }
  }
}

Local development:

{
  "command": "node",
  "args": ["/absolute/path/to/API-Security-MCP/dist/index.js"]
}

Environment variables

Variable

Description

PROJECT_ROOT

Default project/repository root


Tools

Tool

Description

apisec_status

Health check for API Security MCP.

apisec_scan_spec

Scan OpenAPI for security gaps (auth missing, etc).

apisec_checks

Return a security test checklist for an API.


License

ISC

Available Tools

3 tools
apisec_checksB

Return a security test checklist for an API.

Inputs: baseUrl (required).

apisec_scan_specC

Scan OpenAPI for security gaps (auth missing, etc).

Inputs: spec (required).

apisec_statusB

Health check for API Security MCP.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools are distinct: status is a health check, scan_spec performs a security scan, and checks returns a checklist. There is minor potential confusion between scan_spec and checks since both relate to security analysis, but their purposes are clearly differentiated.

    Naming Consistency4/5

    All tool names use a consistent 'apisec_' prefix followed by a noun or verb_noun pattern (status, scan_spec, checks). The pattern is predictable, though 'apisec_checks' is a noun while 'apisec_scan_spec' is verb_noun, creating a slight inconsistency.

    Tool Count3/5

    Three tools is on the low end but reasonable for a focused API security MCP server. The scope is narrow, so the count is acceptable, though it feels slightly thin for a security tool that might need more operations.

    Completeness3/5

    The server covers health check, scanning, and checklist generation, but lacks obvious operations like retrieving scan results, managing scans, or applying fixes. The surface is functional but has notable gaps for a complete security workflow.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Discovers, inspects, and executes requests against OpenAPI or Swagger APIs directly from documentation URLs or specification files. It enables users to trace parameter usage across an API and perform authenticated HTTP requests through a structured toolset.
      8
      33 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Scan APIs for security vulnerabilities and get OWASP risk scores. Detects auth bypass, BOLA/IDOR, data exposure, prompt injection, and 12+ security categories.
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible clients to discover API endpoints from OpenAPI/Swagger specs, send HTTP requests, validate responses, and analyze status codes for automated API testing.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables security analysis through MCP-compatible clients, including URL phishing checks, email header verification, JWT decoding, password strength analysis, and leaked secret scanning in code.
      24 npm
      MIT