IE

iolufemi/express-rest-api-and-mcp-server-framework

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

148 stars 38 forks 质量 71 趋势 20GPL-3.0

iolufemi/express-rest-api-and-mcp-server-framework 是从 https://github.com/iolufemi/express-rest-api-and-mcp-server-framework. 导入的 MCP 服务器候选

概览

iolufemi/express-rest-api-and-mcp-server-framework 是从 https://github.com/iolufemi/express-rest-api-and-mcp-server-framework. 导入的 MCP 服务器候选

概述(AI 翻译)

Express REST API 和 MCP Server Framework 是一个全面的开发框架,用于构建带有 Express.js 的 RESTful API。它提供了完整的模板,用于使用 Node.js、Express、Mongoose(MongoDB)和 Sequelize(SQL 数据库)创建生产准备 API。每个生成的服务都暴露 REST 端点和 MCP(模型上下文协议)服务器,使大型语言模型可以直接与你的 API 交互。

GitHub repository: iolufemi/Express-REST-API-and-MCP-Server-Framework

什么是API?

在计算机编程中,应用程序编程接口(API)是一组明确定义的各种软件组件之间的通信方法。一个好的API通过提供所有构建模块,然后由程序员组装,使开发计算机程序变得更为容易。API可以是基于网页的系统、操作系统、数据库系统、计算机硬件或软件库。正如图形用户界面让人们更容易使用程序一样,应用程序编程接口也使开发者更容易使用某些技术来构建应用程序。- 维基百科

什么是休息?

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Express REST API and MCP Server Framework

Express REST API and MCP Server Framework is a comprehensive development framework for building RESTful APIs with Express.js. It provides a complete template for creating production-ready APIs using Node.js, Express, Mongoose (MongoDB), and Sequelize (SQL databases). Every generated service exposes both REST endpoints and an MCP (Model Context Protocol) server so LLMs can interact with your API directly.

GitHub repository: iolufemi/Express-REST-API-and-MCP-Server-Framework

What is API?

In computer programming, an application programming interface (API) is a set of clearly defined methods of communication between various software components. A good API makes it easier to develop a computer program by providing all the building blocks, which are then put together by the programmer. An API may be for a web-based system, operating system, database system, computer hardware or software library. Just as a graphical user interface makes it easier for people to use programs, application programming interfaces make it easier for developers to use certain technologies in building applications. - Wikipedia

What is REST?

Representational state transfer (REST) or RESTful web services is a way of providing interoperability between computer systems on the Internet. REST-compliant Web services allow requesting systems to access and manipulate textual representations of Web resources using a uniform and predefined set of stateless operations. - Wikipedia

NOTE: The use of this project requires that you have a basic knowledge of using Express in building a REST API.

What is MCP?

MCP (Model Context Protocol) is an open protocol that lets AI assistants (e.g. Claude, ChatGPT, Cursor) interact with your application through a standard interface. Instead of the LLM calling your REST API with raw HTTP, it uses MCP to discover and use tools (actions like create, update, delete) and resources (read-only data like list and get-by-id). - Wikipedia

This framework ships with a built-in MCP server. When you generate a service with npm run generate -- --name users, the same data is exposed as:

  • REST API — GET/POST/PUT/DELETE /users for apps and integrations
  • MCP tools — e.g. create_users, update_users, list_users for LLMs
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →