MCP Catalogs
Home

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.

developer-toolsai-llmops-infra
38
Forks
13
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Building AI-native applications where LLMs need to interact with backend data
you:Rapid prototyping of REST APIs with automatic MCP server integration
you:Creating dual-purpose APIs that serve both traditional clients and AI assistants
you:What databases are supported?
you:How do I add MCP tools to my existing API?

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 README
  • create_items

    Create one record in the items collection

  • create_many_items

    Bulk create multiple records in the items collection

  • update_items

    Update a record by id and data

  • delete_items

    Delete a record by id

  • items://list

    List all records in the items collection

  • items://search

    Search for items in the collection

  • items://{id}

    Get one record by id from items collection

  • create_users

    Create one record in the users collection

  • update_users

    Update a user record by id and data

  • users://list

    List all records in the users collection

  • users://search

    Search for users in the collection

  • users://{id}

    Get one user record by id

Comparable tools

mcp-server-expressapi-mcp-serverrest-mcp-generator

Installation

Installation

  1. 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
  1. Generate your first service:
$ npm run generate -- --name yourFirstEndpoint
  1. Start the development server:
$ npm run dev

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.