HasMCP CE

v1.0.0Developer Toolsstable

HasMCP Community Edition

ai-agentai-agent-toolsai-agents-frameworkai-automationmcp
Share:
38
Stars
0
Downloads
0
Weekly
0/5

What is HasMCP CE?

HasMCP CE is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to hasmcp community edition

HasMCP Community Edition

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • HasMCP Community Edition

Use Cases

Build and manage MCP servers with authentication and authorization through the HasMCP Community Edition framework.
hasmcp

Maintainer

LicenseAGPL-3.0
Languagego
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx hasmcp-ce

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use HasMCP CE

HasMCP Community Edition is an open-source MCP gateway and builder that turns any OpenAPI v3+ or Swagger specification into a fully authenticated MCP server in minutes, without writing code. It acts as a proxy layer that converts REST API endpoints into MCP tools, manages OAuth2 authentication tokens per server, provides real-time request logging and analytics, and automates SSL certificate provisioning via Let's Encrypt. Developers and teams use it to expose internal APIs, third-party SaaS services, or custom backends to AI agents through a unified MCP interface, with per-endpoint toggle control and short- and long-term token management. It ships as a single Docker image or can be run locally with a Go backend and a Vite/React frontend.

Prerequisites

  • Docker 20+ (recommended) or Go 1.21+ and Node.js 18+ for local development
  • A domain name (or localhost) for the HasMCP gateway, with ports 80 and 443 accessible for SSL automation
  • OpenAPI v3+ or Swagger 2.0 specification for each API you want to expose as an MCP server
  • An MCP-compatible client such as Claude Desktop, Cursor, or VS Code with Copilot
  • Optional: PostgreSQL instance (SQLite is used by default)
1

Pull the HasMCP CE Docker image

Pull the latest community edition image from Docker Hub. You can also pin a specific version using the HASMCP_VERSION variable.

docker pull hasmcp/hasmcp-ce:latest
2

Create the environment file

Download the example .env file and customise it. By default, HasMCP CE uses SQLite; set POSTGRES_ENABLED=true and supply connection details to switch to PostgreSQL.

wget https://raw.githubusercontent.com/hasmcp/hasmcp-ce/main/backend/cmd/server/.env.example -O .env
# Edit .env as needed, e.g.:
# POSTGRES_ENABLED=false
# POSTGRES_USER=hasmcp
# POSTGRES_PASSWORD=secret
# POSTGRES_HOST=db
# POSTGRES_PORT=5432
# POSTGRES_DBNAME=hasmcp
3

Start the HasMCP CE server

Run the container, mounting persistent storage for certificates and database files. The gateway listens on ports 80 and 443.

docker run --env-file .env \
  -p 80:80 -p 443:443 \
  -v ./_certs:/_certs \
  -v ./_storage:/_storage \
  -d --restart always \
  hasmcp/hasmcp-ce:latest
4

Import an OpenAPI specification

Open the HasMCP CE web UI (http://localhost or your domain), log in, and paste or upload your OpenAPI v3+ spec. HasMCP will parse each endpoint and create a corresponding MCP tool.

5

Configure authentication tokens

In the HasMCP CE dashboard, set per-server authentication tokens (Bearer, API key, or OAuth2). These are injected automatically into proxied requests — your MCP client never handles raw credentials.

6

Connect your MCP client

Add the generated MCP server URL to your client configuration. HasMCP CE exposes each imported API as a distinct MCP server endpoint.

{
  "mcpServers": {
    "my-api": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://<your-hasmcp-domain>/sse/<server-id>"]
    }
  }
}

HasMCP CE Examples

Client configuration (Claude Desktop via SSE)

Connect Claude Desktop to a HasMCP CE hosted MCP server using mcp-remote as the transport bridge.

{
  "mcpServers": {
    "hasmcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://<your-hasmcp-domain>/sse/<server-id>"
      ]
    }
  }
}

Prompts to try

After importing an API spec, use prompts like these to interact with the exposed MCP tools through your AI assistant.

- "List all available tools imported from my OpenAPI spec."
- "Call the /products endpoint and return items where category is 'electronics'."
- "Show me the real-time request logs for the last 10 tool calls made through HasMCP."
- "Toggle off the DELETE /users/{id} endpoint so it can't be called by the AI agent."

Troubleshooting HasMCP CE

SSL certificate provisioning fails on startup.

Ensure your domain's DNS A record points to the server's public IP and that ports 80 and 443 are open in your firewall. Let's Encrypt requires HTTP-01 challenge access on port 80 before issuing a certificate.

OpenAPI import results in missing or broken tools.

HasMCP CE requires OpenAPI v3.0+ or Swagger 2.0. Validate your spec at editor.swagger.io before import. Ensure all $ref references are resolved (use a bundled/dereferenced spec if necessary).

PostgreSQL connection refused error on startup.

If you set POSTGRES_ENABLED=true, make sure the PostgreSQL host, port, user, password, and database name in .env are correct and that the database server is running and reachable from the container network.

Frequently Asked Questions about HasMCP CE

What is HasMCP CE?

HasMCP CE is a Model Context Protocol (MCP) server that hasmcp community edition It connects AI assistants to external tools and data sources through a standardized interface.

How do I install HasMCP CE?

Follow the installation instructions on the HasMCP CE GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with HasMCP CE?

HasMCP CE works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is HasMCP CE free to use?

Yes, HasMCP CE is open source and available under the AGPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "hasmcp-ce": { "command": "npx", "args": ["-y", "hasmcp-ce"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use HasMCP CE?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides