1. Conduid
  2. Cloud
  3. Middy MCP
MCP server · Cloud

Middy MCP

Middy middleware for Model Context Protocol server hosting on AWS Lambda

Unclaimed MIT last commit a year ago cloud
54Fair

Scored yesterday · breakdown

About Middy MCP

Middy MCP is an MCP server published by fredericbarthelet in the Cloud category: middy middleware for Model Context Protocol server hosting on AWS Lambda.

The repository has 40 stars and 8 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/fredericbarthelet/middy-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Middy MCP

Powered by Claude · Grounded in docs

I know everything about Middy MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.6v0.1.6 · 6 May 2025Last release to check publish pipeline has been fixed. Full Changelog: https://github.com/fredericbarthelet/middy-mcp/compare/v0.1.5...v0.1.6
v0.1.5v0.1.5 · 6 May 2025Full Changelog: https://github.com/fredericbarthelet/middy-mcp/compare/v0.1.4...v0.1.5
v0.1.4v0.1.4 · 6 May 2025Full Changelog: https://github.com/fredericbarthelet/middy-mcp/compare/v0.1.3...v0.1.4
v0.1.3v0.1.3 · 6 May 2025Full Changelog: https://github.com/fredericbarthelet/middy-mcp/compare/v0.1.2...v0.1.3
v0.1.2v0.1.2 · 6 May 2025Full Changelog: https://github.com/fredericbarthelet/middy-mcp/compare/v0.1.1...v0.1.2

README

Middy MCP

A Middy middleware for Model Context Protocol (MCP) server integration with AWS Lambda functions.

Description

Middy MCP is a middleware that enables seamless integration between AWS Lambda functions and Model Context Protocol servers. It provides a convenient way to handle MCP requests and responses within your Lambda functions using the Middy middleware framework. It supports requests sent to AWS Lambda from API Gateway (both REST API / v1 and HTTP API / v2) using the Proxy integration, as well as requests sent form an ALB.

Disclaimer: hosting your MCP server this way is only compatible with MCP clients using at least protocol version 2025-03-26.

Install

pnpm install middy-mcp

Requirements

  • Node.js >= 18.0.0
  • Middy >= 6.0.0

Usage

This middleware can throw HTTP exceptions, so it can be convenient to use it in combination with the @middy/http-error-handler.

Hereafter is an exemple of a minimal Lambda function handler file. Deploy this lambda as a proxy integration on a POST route of your API Gateway and you're good to go.

import middy from "@middy/core";
import httpErrorHandler from "@middy/http-error-handler";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

import mcpMiddleware from "middy-mcp";

// Create an MCP server
const server = new McpServer({
  name: "Lambda hosted MCP Server",
  version: "1.0.0",
});

// Add an addition tool
server.tool("add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({
  content: [{ type: "text", text: String(a + b) }],
}));

export const handler = middy()
  .use(mcpMiddleware({ server }))
  .use(httpErrorHandler());

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to open an issue or to submit a pull request 🚀!

README fetched from the repository yesterday. The original is authoritative.

Questions

About Middy MCP

How do I install Middy MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Middy MCP safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Middy MCP still maintained?

The last commit was a year ago and 4 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.