MCP.so
登录

🧠 serverless-mcp-server

@eleva

关于 🧠 serverless-mcp-server

A super simple Model Context Protocol (MCP) server deployed on AWS Lambda and exposed via Amazon API Gateway, deployed with Serverless Framework.

基本信息

分类

云与基础设施

运行时

node

传输方式

stdio

发布者

eleva

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "serverless-mcp-server": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "node",
        "src/index.mjs"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is serverless-mcp-server?

It is a minimal Model Context Protocol (MCP) server deployed on AWS Lambda and exposed via Amazon API Gateway using the Serverless Framework. Designed for developers who want to host MCP tools serverlessly on AWS.

How to use serverless-mcp-server?

Install dependencies with npm install, optionally install the open-source Serverless CLI globally (npm install -g osls), then run locally using serverless-offline (npm sls offline) or deploy to AWS with sls deploy. The endpoint is POST /mcp. Test with the MCP inspector or curl; an example add tool is included.

Key features of serverless-mcp-server

  • Minimal MCP server setup using @modelcontextprotocol/sdk
  • Deployed as a single AWS Lambda function
  • HTTP POST endpoint exposed via API Gateway at /mcp
  • Supports local development via serverless-offline
  • Includes a simple example tool (add) with JSON‑RPC interaction

Use cases of serverless-mcp-server

  • Hosting MCP tools on AWS without managing server infrastructure
  • Rapid prototyping and testing MCP servers locally before deploying
  • Integrating MCP capabilities into a serverless AWS stack
  • Building lightweight, scalable tool‑based AI agents

FAQ from serverless-mcp-server

What are the runtime requirements?

Node.js v22+ and the Serverless Framework v3+ (or the open‑source osls CLI) are required.

Can I use API Gateway V2 (HTTP API) instead of V1?

Yes. Change the events section in serverless.yml from http to httpApi and update local endpoint accordingly.

How do I test the server locally?

Run npm sls offline to start the server on http://localhost:3000/dev/mcp (V1) or http://localhost:3000/mcp (V2). Use the MCP inspector or curl to interact.

What tools are included by default?

Only a single example tool add that takes two numbers (a and b) and returns their sum. You can extend the server with your own tools.

Does deployment require an AWS account?

Yes. After running sls deploy, the server goes live on AWS. The URL is printed in the deployment output.

评论

云与基础设施 分类下的更多 MCP 服务器