AuthMCP Gateway MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install authmcp-gateway
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DATABASE_URL=${DATABASE_URL}" auth-mcp-gateway -- node "<FULL_PATH_TO_AUTHMCP_GATEWAY>/dist/index.js"

Replace <FULL_PATH_TO_AUTHMCP_GATEWAY>/dist/index.js with the actual folder you prepared in step 1.

Required:DATABASE_URL
README.md

Secure authentication proxy for Model Context Protocol (MCP) servers

AuthMCP Gateway

Secure authentication proxy for Model Context Protocol (MCP) servers

AuthMCP Gateway is a full MCP protocol proxy with centralized authentication, authorization, and monitoring. It transparently proxies all MCP capabilities — tools, resources, prompts, and completions — from multiple backend servers through a single authenticated endpoint.

OAuth + DCR ready: the gateway supports OAuth 2.0 Authorization Code flow with Dynamic Client Registration (DCR), so MCP clients like Codex can self-register and authenticate without manual client provisioning.

📋 Table of Contents


✨ Features

🔗 **Full MCP Protocol Proxy** (v1.2.0)

  • Tools - tools/list, tools/call with intelligent routing (prefix, mapping, auto-discovery)
  • Resources - resources/list, resources/read, resources/templates/list
  • Prompts - prompts/list, prompts/get
  • Completions - completion/complete with ref-based routing
  • Dynamic Capabilities - queries backends on initialize and advertises only what they support
  • Multi-server aggregation - list methods merge results from all backends; read/get/call routes to the correct one
  • Protocol version - MCP 2025-03-26

🔐 **Authentication & Authorization**

  • OAuth 2.0 + JWT - Industry-standard authentication flow
  • Dynamic Client Registration (DCR) - MCP clients can self-register for OAuth
  • User Management - Multi-user support with role-based access
  • Backend Token Management - Secure storage and auto-refresh of MCP server credentials
  • Rate Limiting - Per-user request throttling with configurable limits

📊 **Real-Time Monitoring**

  • Live MCP Activity Monitor - Real-time request feed with auto-refresh
  • Performance Metrics - Response times, success rates, requests/minute
  • Security Event Logging - Unauthorized access attempts, rate limiting, suspicious activity
  • Health Checking - Automatic health checks for all connected MCP servers

🎛️ **Admin Dashboard**

  • User Management - Create, edit, and manage users
  • MCP Server Configuration - Add and configure backend MCP servers
  • Token Management - Monitor token health and manual refresh
  • Security Events - View and filter security events
  • Security Audit - MCP vulnerability scanning

🛡️ **Security**

  • JWT token-based authentication with refresh tokens
  • Secure credential storage with encrypted database support
  • CORS protection and request validation
  • Security event logging and monitoring
  • File-based logging - JSON logs for auth & MCP requests with rotation; security events remain in SQLite for audit/queries

📸 Screenshots

🖥️ Dashboard - Real-time Overview

Dashboard

Live statistics, server health monitoring, top tools usage, and recent activity feed

🔧 MCP Servers - Connection Management

MCP Servers

Manage backend MCP server connections with status monitoring and health checks

📊 MCP Activity Monitor - Real-time Request Tracking

MCP Activity

Monitor live MCP requests with detailed metrics, top tools ranking, and request feed

🛡️ Security Events - Threat Detection

Security Events

Track security events, rate limiting, suspicious payloads, and unauthorized access attempts

🔒 MCP Security Audit - Vulnerability Scanner

MCP Security Audit

*Test any MCP server for security vulnerabili

Environment Variables

DATABASE_URLrequiredConnection string for the SQLite database used for security events and configuration

Configuration

claude_desktop_config.json
{"mcpServers": {"auth-mcp-gateway": {"command": "python", "args": ["-m", "authmcp_gateway"]}}}

Try it

List all available MCP servers connected through the gateway.
Check the health status of my backend MCP servers.
Show me the recent security events and unauthorized access attempts.
Retrieve the current performance metrics for my MCP tool calls.

Frequently Asked Questions

What are the key features of AuthMCP Gateway?

Full MCP protocol proxy supporting tools, resources, prompts, and completions. OAuth 2.0 and JWT authentication with Dynamic Client Registration (DCR). Multi-server aggregation for unified access to multiple backends. Real-time activity monitoring and performance metrics dashboard. Role-based access control and per-user rate limiting.

What can I use AuthMCP Gateway for?

Centralizing security and authentication for multiple internal MCP servers. Monitoring and auditing MCP tool usage across an organization. Enabling secure remote access to local MCP tools via OAuth. Implementing rate limiting to prevent abuse of sensitive MCP resources.

How do I install AuthMCP Gateway?

Install AuthMCP Gateway by running: pip install authmcp-gateway

What MCP clients work with AuthMCP Gateway?

AuthMCP Gateway works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep AuthMCP Gateway docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare