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

@mhdd_24/api-auth-mcp

by Mhdd-24

@mhdd_24/api-auth-mcp

Test API authentication and authorization.

Same architecture as @mhdd_24/sublime-mcp.

Full documentation: docs/WIKI.md


How it works (30 seconds)

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

Related MCP server: api-testing-agent

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-auth-mcp

Option B — npx

npx @mhdd_24/api-auth-mcp

Option C — clone and build

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

Configure Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "apiauth": {
      "command": "npx",
      "args": ["-y", "@mhdd_24/api-auth-mcp"],
      "env": {
        "API_AUTH_TOKEN": "..."
      }
    }
  }
}

Local development:

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

Environment variables

Variable

Description

API_AUTH_TOKEN

Optional bearer token


Tools

Tool

Description

apiauth_status

Show API auth test configuration.

apiauth_probe

Call URL with/without Authorization header.

apiauth_matrix

Suggest auth test matrix for roles.


License

ISC

Available Tools

3 tools
apiauth_matrixC

Suggest auth test matrix for roles.

Inputs: roles (required), endpoint (required).

apiauth_probeB

Call URL with/without Authorization header.

Inputs: url (required), token.

apiauth_statusB

Show API auth test configuration.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 3 tools

    Disambiguation4/5

    Each tool has a distinct role: status shows the current auth configuration, probe actually executes a request, and matrix suggests test scenarios. There is minor potential confusion between status and matrix, but the descriptions separate present-state reporting from future/test-plan generation well enough.

    Naming Consistency5/5

    All tool names follow a consistent apiauth_ prefix and lowercase snake_case style. Although the names are not strictly verb_noun, the pattern is uniform and predictable across the entire set.

    Tool Count5/5

    Three tools is well-scoped for the narrow purpose of API auth testing. Each tool covers a meaningful and distinct aspect without unnecessary redundancy.

    Completeness4/5

    The set covers inspecting configuration, executing probes, and generating a test matrix, which forms a coherent workflow. A minor gap is the lack of a tool for updating or persisting auth configuration, but the current surface is sufficient for advisory and testing tasks.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables conversational API testing via MCP, allowing users to make HTTP requests, decode JWT tokens, and validate JSON schemas through natural language.
      -
    • 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
      A
      quality
      B
      maintenance
      Enables AI assistants to run authorized active authorization tests against remote MCP servers you own, including refresh token rotation and replay, redirect URI strictness, throttling, and consent CSRF checks, with JSON, SARIF, and Markdown reports.
      5
      745 npm
      MIT