MCP Hub
Back to servers

@restforge-dev/mcp-server

MCP server that exposes RESTForge capabilities to AI agents, enabling them to set up, configure, generate code, and manage RESTForge projects through natural language.

glama
Updated
May 8, 2026

@restforge-dev/mcp-server

MCP (Model Context Protocol) server for the RESTForge framework. Exposes RESTForge capabilities to AI Agents (Claude Desktop, Cursor, Claude CLI, and other MCP clients) so agents can operate RESTForge through natural language without manually invoking CLI commands.

Requirements

  • Node.js >= 18
  • npm >= 9
  • For full setup workflow: PostgreSQL / MySQL / Oracle / SQLite, RESTForge license key

Installation

npm install -g @restforge-dev/mcp-server

After installation, the restforge-mcp command is available in PATH.

Quick Start

1. Verify Install

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | restforge-mcp

Output should list 29 tools across the health_*, setup_*, codegen_*, and runtime_* domains.

2. Register with MCP Client

Claude CLI (user scope, applies to all projects):

claude mcp add --transport stdio --scope user restforge -- restforge-mcp

Cursor (.cursor/mcp.json in project root):

{
  "mcpServers": {
    "restforge": {
      "command": "restforge-mcp"
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "restforge": {
      "command": "restforge-mcp"
    }
  }
}

3. Use via Natural Language

In your AI client chat, type prompts like:

Setup a new RESTForge project at d:/projects/api-test with PostgreSQL on localhost:5432, license XXXX-XXXX-XXXX-XXXX

Generate a CRUD endpoint for the customer table

Run my RESTForge server (the agent generates a launcher script for the user to execute)

The agent orchestrates the appropriate tools to fulfill the request end-to-end.

Available Tools

29 tools organized by domain. AI agents call these via the MCP protocol; end users do not invoke them directly.

Health Domain (1 tool)

ToolDescription
health_pingSmoke test MCP transport. Returns pong + ISO timestamp + server version

Setup Domain (9 tools)

ToolDescription
setup_create_folderCreate a new project folder for RESTForge
setup_install_packageInstall restforgejs into the project's node_modules via npm
setup_init_configGenerate skeleton config and sample payloads via restforge-cli init
setup_write_envWrite config/db-connection.env with license, server, and database settings
setup_read_envRead current values from config/db-connection.env
setup_update_envUpdate individual fields in config/db-connection.env
setup_validate_configValidate license and connections to database, redis, and kafka
setup_get_config_schemaGet JSON schema of all 63 parameters available in db-connection.env
setup_get_init_templateGet raw db-connection.env template content

Codegen Domain (13 tools)

ToolDescription
codegen_list_tablesList all tables in the project's database (live introspection)
codegen_describe_tableDescribe columns, primary key, and foreign keys of a specific table
codegen_generate_payloadGenerate payload JSON from a database table
codegen_validate_payloadValidate payload JSON structure and constraints
codegen_validate_dashboard_payloadValidate dashboard payload structure
codegen_diff_payloadDiff payload JSON against the database schema
codegen_sync_payloadSync payload JSON with the database schema
codegen_create_endpointScaffold an endpoint module from a payload spec
codegen_create_dashboardScaffold a dashboard module from a payload spec
codegen_validate_sqlValidate a SELECT or WITH (CTE) SQL statement via EXPLAIN against the live database
codegen_get_field_validation_catalogGet the field validation catalog (for grounding payload constraints)
codegen_get_query_declarative_catalogGet the query declarative catalog (for grounding query JSON)
codegen_get_dashboard_catalogGet the dashboard widget catalog (for grounding dashboard config)

Runtime Domain (6 tools)

ToolDescription
runtime_detect_projectScan src/modules/*.js to list project names
runtime_detect_configScan config/*.env to list available config files
runtime_validate_preflightValidate config + check PID file + check port availability before launch
runtime_check_launcher_existsCheck if launcher files (server-start.bat/.sh, ecosystem.config.js) exist in the project root
runtime_generate_launcherGenerate server-start.bat/.sh + server-stop.bat/.sh (and ecosystem.config.js for PM2 mode)
runtime_check_statusDetect if the server is running (host or PM2 mode) with optional HTTP health probe

Runtime principle: AI agents never start, stop, or restart the server directly. The runtime tools only generate launcher scripts that the user executes themselves, so the running server lives independently of the AI session.

Compatibility

This MCP server works with any MCP client that supports the stdio transport, including but not limited to:

  • Claude Desktop
  • Claude CLI (Claude Code)
  • Cursor
  • Windsurf
  • Cline (VS Code extension)
  • Continue (VS Code/JetBrains extension)
  • Zed

The model used (Claude, GPT, Gemini, etc.) depends on the client configuration. Tool selection accuracy is best with frontier models that have mature tool-calling support.

Repository

License

MIT — see LICENSE.md.

Reviews

No reviews yet

Sign in to write a review