Express API Framework
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
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
Maintainer
Works with
Installation
Manual Installation
npx express-rest-api-and-mcp-server-frameworkConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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 installConfigure 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:6379Generate 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 ProductStart 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 devRetrieve 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=httpAdd 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.
Express API Framework Alternatives — Similar Developer Tools Servers
Looking for alternatives to Express API Framework? 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 Express API Framework 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 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.