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

middy

Middy middleware for Model Context Protocol server

Unclaimed cloud
39Low

Scored 2 days ago · breakdown

About middy

middy is an MCP server published by git+fredericbarthelet in the Cloud category: middy middleware for Model Context Protocol server.

Install

Install
npx middy-mcp
Claude Code
claude mcp add middy-mcp-gitfrede -- npx -y middy-mcp
npx
npx -y 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

Powered by Claude · Grounded in docs

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

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

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 copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About middy

How do I install middy?

Run npx middy-mcp, then add the server to your MCP client's configuration.

Is middy safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 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 still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.