Express-REST-API-and-MCP-Server-Framework
by iolufemi·★ 147·Score 48
Express-based framework that generates dual REST API and MCP servers from a single codebase.
Overview
This comprehensive development framework enables rapid creation of RESTful APIs with built-in MCP server capabilities. It generates complete CRUD services with both REST endpoints and MCP tools/resources, allowing LLMs to interact directly with your application. The framework supports multiple database options including MongoDB, SQL, and external APIs, providing flexibility in data management while maintaining a consistent interface.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when you need to build both REST APIs for traditional applications and MCP interfaces for AI clients from the same codebase.
When NOT to choose this
Don't choose this if you need a simple MCP server without REST API requirements, or if you're not using Node.js/Express.
Tools this server exposes
12 tools extracted from the READMEcreate_itemsCreate one record in the items collection
create_many_itemsBulk create multiple records in the items collection
update_itemsUpdate a record by id and data
delete_itemsDelete a record by id
items://listList all records in the items collection
items://searchSearch for items in the collection
items://{id}Get one record by id from items collection
create_usersCreate one record in the users collection
update_usersUpdate a user record by id and data
users://listList all records in the users collection
users://searchSearch for users in the collection
users://{id}Get one user record by id
Comparable tools
Installation
Installation
- Clone the repository and install dependencies:
$ git clone https://github.com/iolufemi/Express-REST-API-and-MCP-Server-Framework.git ./yourProjectName
$ cd yourProjectName
$ npm install- Generate your first service:
$ npm run generate -- --name yourFirstEndpoint- Start the development server:
$ npm run devClaude Desktop Integration
Add the following to your Claude Desktop configuration:
{
"mcpServers": {
"express-mcp": {
"command": "node",
"args": ["path/to/your/project/dist/server.js"],
"env": {}
}
}
}FAQ
- What databases are supported?
- The framework supports MongoDB (Mongoose), SQL databases (Sequelize), and external APIs as data sources.
- How do I add MCP tools to my existing API?
- Use the 'npm run generate' command to create new services, which automatically include MCP tools and resources.
Compare Express-REST-API-and-MCP-Server-Framework with
Last updated · Auto-generated from public README + GitHub signals.