HasMCP CE
HasMCP Community Edition
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
Maintainer
Works with
Installation
Manual Installation
npx hasmcp-ceConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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)
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:latestCreate 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=hasmcpStart 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:latestImport 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.
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.
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.
HasMCP CE Alternatives — Similar Developer Tools Servers
Looking for alternatives to HasMCP CE? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up HasMCP CE in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.