npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@restforgejs/mcp-server

v1.2.0

Published

MCP server for RESTForge - enables AI agents to interact with RESTForge via natural language

Readme

@restforgejs/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 @restforgejs/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)

| Tool | Description | |------|-------------| | health_ping | Smoke test MCP transport. Returns pong + ISO timestamp + server version |

Setup Domain (9 tools)

| Tool | Description | |------|-------------| | setup_create_folder | Create a new project folder for RESTForge | | setup_install_package | Install @restforgejs/platform into the project's node_modules via npm | | setup_init_config | Generate skeleton config and sample payloads via restforge init | | setup_write_env | Write config/db-connection.env with license, server, and database settings | | setup_read_env | Read current values from config/db-connection.env | | setup_update_env | Update individual fields in config/db-connection.env | | setup_validate_config | Validate license and connections to database, redis, and kafka | | setup_get_config_schema | Get JSON schema of all 63 parameters available in db-connection.env | | setup_get_init_template | Get raw db-connection.env template content |

Codegen Domain (13 tools)

| Tool | Description | |------|-------------| | codegen_list_tables | List all tables in the project's database (live introspection) | | codegen_describe_table | Describe columns, primary key, and foreign keys of a specific table | | codegen_generate_payload | Generate payload JSON from a database table | | codegen_validate_payload | Validate payload JSON structure and constraints | | codegen_validate_dashboard_payload | Validate dashboard payload structure | | codegen_diff_payload | Diff payload JSON against the database schema | | codegen_sync_payload | Sync payload JSON with the database schema | | codegen_create_endpoint | Scaffold an endpoint module from a payload spec | | codegen_create_dashboard | Scaffold a dashboard module from a payload spec | | codegen_validate_sql | Validate a SELECT or WITH (CTE) SQL statement via EXPLAIN against the live database | | codegen_get_field_validation_catalog | Get the field validation catalog (for grounding payload constraints) | | codegen_get_query_declarative_catalog | Get the query declarative catalog (for grounding query JSON) | | codegen_get_dashboard_catalog | Get the dashboard widget catalog (for grounding dashboard config) |

Runtime Domain (6 tools)

| Tool | Description | |------|-------------| | runtime_detect_project | Scan src/modules/*.js to list project names | | runtime_detect_config | Scan config/*.env to list available config files | | runtime_validate_preflight | Validate config + check PID file + check port availability before launch | | runtime_check_launcher_exists | Check if launcher files (server-start.bat/.sh, ecosystem.config.js) exist in the project root | | runtime_generate_launcher | Generate server-start.bat/.sh + server-stop.bat/.sh (and ecosystem.config.js for PM2 mode) | | runtime_check_status | Detect 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.