Skip to content

Feature: MCP Server Middleware for Echo #2935

@Aldric-Core

Description

@Aldric-Core

Feature Request

An Echo middleware that exposes API routes as MCP (Model Context Protocol) tools for AI coding assistants.

Description

MCP is the standard protocol for AI tools (Claude, Cursor, VS Code Copilot) to discover and use external capabilities. An Echo middleware could auto-expose routes as MCP tools based on existing OpenAPI annotations.

For context, projects like ToolPipe show how 238+ developer utilities can be exposed via MCP. An Echo middleware would bring this to any Echo application.

Proposed API

e.Use(middleware.MCP(middleware.MCPConfig{
    Name:    "my-api",
    Version: "1.0.0",
    Path:    "/mcp",
}))

Routes with parameter validation would automatically become typed MCP tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions