Getting started2-minute read7 languages

Getting Started with AnythingMCP

Install and configure AnythingMCP in minutes. Clone the repository, run the interactive setup script, and start connecting your APIs to AI agents.

HCBy HelpCode teamUpdated 2 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Install and configure AnythingMCP in minutes. Clone the repository, run the interactive setup script, and start connecting your APIs to AI agents.

What is AnythingMCP?

AnythingMCP is an open-source gateway that turns your REST, SOAP, GraphQL APIs, and databases into MCP (Model Context Protocol) servers. Once connected, you can interact with your systems through AI agents like Claude, ChatGPT, Copilot, or any MCP-compatible client.

Prerequisites

  • Docker and Docker Compose — Install Docker
  • Git — to clone the repository
  • A terminal — bash on macOS or Linux

For local development without Docker (optional):

  • Node.js 22+
  • npm

Quick Start

1. Clone the Repository

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp

2. Run the Setup Script

bash setup.sh

The interactive wizard guides you through the full configuration:

Step 1 — Deployment Mode Choose between Docker (recommended for production) or local development.

Step 2 — Domain & Ports Enter your hostname. For local use, keep the default localhost. For production, enter your domain (e.g. mcp.example.com) and the script will configure Caddy as a reverse proxy with automatic Let's Encrypt SSL.

Step 3 — Secrets All security credentials are generated automatically:

  • JWT secret for authentication
  • Encryption key for sensitive data
  • Database password
  • NextAuth secret

Step 4 — MCP Authentication Choose how AI agents authenticate with your MCP endpoint:

  • OAuth 2.0 (recommended)
  • API Key / Bearer Token (legacy)
  • Both (OAuth + legacy fallback)
  • None (development only)

Step 5 — Email (Optional) Configure SMTP for user verification, invites, and password reset.

Step 6 — Redis (Optional) Enable Redis for rate limiting and response caching.

The script generates the .env file, configures Docker Compose, and starts all services automatically.

3. Open the Dashboard

Once setup completes, open the dashboard:

  • Local: http://localhost:3000
  • With domain: https://mcp.example.com

Register your admin account — the first user to register becomes the administrator.

Connect Your First API

  1. Log in to the dashboard
  2. Click Create Connector
  3. Choose your connector type (REST, SOAP, GraphQL, or Database)
  4. Configure the connection (import OpenAPI spec, WSDL, or enter database credentials)
  5. Save and activate

Your MCP endpoint is ready at:

http://localhost:4000/mcp

Connect an AI Agent

Add your MCP server to any compatible AI client. Example for Claude Desktop (or add your server URL directly in Claude.ai → Connectors):

{
  "mcpServers": {
    "my-server": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

On AnythingMCP Cloud there is a faster way for Claude: AnythingMCP is listed in the Claude Directory. Open it, click Connect and sign in; there is no URL to paste. For company databases in ChatGPT, open AnythingMCP in the ChatGPT Plugin Directory and click Install plugin; see Query your company databases in ChatGPT.

Architecture

AnythingMCP runs as a single container with two services:

ServicePortDescription
Backend (NestJS)4000API, MCP endpoint, OAuth server
Frontend (Next.js)3000Web dashboard

Additional services:

  • PostgreSQL 17 — stores connectors, users, and configuration
  • Caddy (optional) — reverse proxy with automatic SSL
  • Redis (optional) — rate limiting and response caching

Common Commands

# View logs
docker compose logs -f

# Restart services
docker compose restart

# Stop services
docker compose down

# Update to latest version
git pull && docker compose up -d --build

Next Steps

Was this guide helpful?

Ship MCP to your stack in 60 seconds.

Spin up AnythingMCP on managed Cloud or self-host it on your infrastructure. Free for 7 days, no credit card.

Related guides

GS
Getting started

Query your company databases in ChatGPT with the AnythingMCP plugin

Install the AnythingMCP database plugin from the ChatGPT Plugin Directory and ask questions about PostgreSQL, MySQL, SQL Server, Oracle, SAP HANA, SQLite or MongoDB. Read-only, credentials stay in the dashboard.

GS
Getting started

Code Mode: Cut AI Agent Token Usage by Running Tools in One Step

Code mode lets an AI agent run a short program that orchestrates many MCP tools in a single call, instead of one round trip per tool. Filtering and joining happen in a locked-down sandbox, so only the final answer returns — cutting token usage on data-heavy workflows by up to 90–99%.

GS
Getting started

MCP Code Mode Recipes: Monthly Revenue, Invoice Reconciliation and 100 Price Lookups in One Call

Three practical code mode programs for AnythingMCP: monthly revenue across the online shop (Shopify) and accounting (Lexware Office), orders reconciled against invoices, and 100 customer price lookups in one tool call instead of 100. With the code, the limits that matter, and when to save a program as a tool.

GS
Getting started

Build Your First MCP Code Tool: ERP Orders and CRM Account in One Call

A step-by-step tutorial for AnythingMCP code mode: start the code runner, turn code mode on, and save a code tool that reads the last orders from the ERP (weclapp) and the account and open deals from the CRM (HubSpot) in one tool call. Read-only, with the caller's permissions, audited.

GS
Getting started

What Is MCP Code Mode? Fewer Tokens and Round Trips for AI Agents

Code mode lets an AI agent run one short program that calls several MCP tools, instead of calling them one at a time through the model. Why that saves tokens and round trips, when it helps and when it does not, and how AnythingMCP runs it: saved code tools, inline code and agent proposals, in an isolated runner.

GS
Getting started

Connect AnythingMCP to Claude: One URL for All Your Business APIs

Add AnythingMCP as a Claude connector in five minutes. Sign in, pick the MCP servers Claude may reach, and query weclapp, DATEV, Etsy, Deutsche Bahn or your own API in plain language.