Express API Framework

v1.0.0Developer Toolsstable

Express REST API and MCP Server Framework is a comprehensive development framework for building RESTful APIs and MCP servers with Express.js. It provides a complete template for creating production-ready APIs using Node.js, Express, Mongoose (MongoDB

api-skeletonbackground-jobsbackground-processexpress-api-generatorexpress-rest-api
Share:
147
Stars
0
Downloads
0
Weekly
0/5

What is Express API Framework?

Express API Framework is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to express rest api and mcp server framework is a comprehensive development framework for building restful apis and mcp servers with express.js. it provides a complete template for creating production-re...

Express REST API and MCP Server Framework is a comprehensive development framework for building RESTful APIs and MCP servers with Express.js. It provides a complete template for creating production-ready APIs using Node.js, Express, Mongoose (MongoDB

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

Features

  • Express REST API and MCP Server Framework is a comprehensive

Use Cases

Express REST API and MCP Server Framework is a comprehensive development framewo
iolufemi

Maintainer

LicenseGPL-3.0
Languagetypescript
Versionv1.0.0
UpdatedApr 30, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx express-rest-api-and-mcp-server-framework

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 Express API Framework

The Express REST API and MCP Server Framework is a Node.js/TypeScript project template that generates both a production-ready REST API and a matching MCP server from a single code-generation command. Running `npm run generate -- --name <Model>` scaffolds complete CRUD REST endpoints (POST, GET, PATCH, DELETE, restore) alongside MCP tools (create, update, delete) and MCP resources (list, search, get by ID) for any data model — backed by MongoDB via Mongoose or SQL via Sequelize. It is designed for teams that want to expose the same data service to both traditional applications and AI assistants without writing two separate integrations.

Prerequisites

  • Node.js 22.x or later
  • MongoDB instance (local or Atlas) for the default Mongoose backend, or a SQL database for the --sql variant
  • Redis instance for background job queue processing (Bull)
  • npm for package installation and code generation
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf for testing the generated MCP server
1

Clone the framework repository

Clone the project into your target directory. This is a template — you work from the cloned copy, not from an npm package.

git clone https://github.com/iolufemi/Express-REST-API-and-MCP-Server-Framework.git ./my-api
cd my-api && npm install
2

Configure environment variables

Create a .env file with your MongoDB connection string, Redis URL, and the server port. The LOG_MONGOLAB_URL variable sets the MongoDB connection.

PORT=8080
LOG_MONGOLAB_URL=mongodb://localhost:27017/myapp
REDIS_URL=redis://localhost:6379
3

Generate a new data model with REST and MCP endpoints

Run the generator to scaffold a complete service for a data model. This single command creates the Mongoose schema, Express routes, MCP tool definitions, and MCP resource definitions.

npm run generate -- --name Product
4

Start the development server

Start the server in development mode with hot reload. The MCP server starts alongside the REST API on the same process.

npm run dev
5

Retrieve the MCP client configuration

Call the built-in endpoint to generate the correct MCP config block for your client. This avoids manual configuration errors.

curl http://localhost:8080/mcp/config?format=claude&transport=http
6

Add the generated config to your MCP client

Copy the JSON block returned by /mcp/config into your claude_desktop_config.json (or equivalent) to connect Claude to your running API.

{
  "mcpServers": {
    "my-api": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

Express API Framework Examples

Client configuration

Example MCP config for connecting Claude to a locally running instance of the Express framework. The server must be started with `npm run dev` first.

{
  "mcpServers": {
    "express-api": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

Prompts to try

Prompts for interacting with your generated API endpoints through an AI assistant connected to the MCP server.

- "Create a new Product with name 'Widget Pro', price 49.99, and category 'electronics'"
- "List all Products with category 'electronics', sorted by price ascending"
- "Update Product with id abc123 to set the stock quantity to 500"
- "Search Products for anything matching 'widget'"
- "Delete the Product with id xyz789 and confirm the deletion"
- "Show me the health status of the API including database and queue connections"

Troubleshooting Express API Framework

Generator fails or produces incomplete files

Ensure Node.js 22.x or later is installed (`node --version`). The generator uses ES module features that require a recent Node.js runtime. Run `npm install` again if dependencies are missing.

MongoDB connection fails on startup

Confirm LOG_MONGOLAB_URL is set correctly in your .env file and that MongoDB is running. For local MongoDB, start it with `mongod --dbpath /data/db`. For Atlas, whitelist your IP in the Atlas network access settings.

POST requests return 403 or missing header error

The framework requires the x-tag header on all POST requests for security. Include it in API calls: `-H 'x-tag: your-tag-value'`. Check the generated route files for the expected tag value.

Frequently Asked Questions about Express API Framework

What is Express API Framework?

Express API Framework is a Model Context Protocol (MCP) server that express rest api and mcp server framework is a comprehensive development framework for building restful apis and mcp servers with express.js. it provides a complete template for creating production-ready apis using node.js, express, mongoose (mongodb It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Express API Framework?

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

Which AI clients work with Express API Framework?

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

Is Express API Framework free to use?

Yes, Express API Framework is open source and available under the GPL-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": { "express-rest-api-and-mcp-server-framework": { "command": "npx", "args": ["-y", "express-rest-api-and-mcp-server-framework"] } } }

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

Read the full setup guide →

Ready to use Express API Framework?

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