1. Conduid
  2. Data
  3. BrunoKrugel/echo-mcp
MCP server · Data

BrunoKrugel/echo-mcp

Enable AI assistants to interact with your Echo API

Unclaimed GPL-3.0 data
56Fair

Scored 7 days ago · breakdown

About BrunoKrugel/echo-mcp

BrunoKrugel/echo-mcp is an MCP server published by BrunoKrugel in the Data category: enable AI assistants to interact with your Echo API.

The repository has 12 stars and 6 forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/BrunoKrugel/echo-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 BrunoKrugel/echo-mcp

Powered by Claude · Grounded in docs

I know everything about BrunoKrugel/echo-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 23 hours ago. 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.11v0.1.11 · 26 Mar 2026Echo-MCP v0.1.11 This release contains the latest version of Echo-MCP, a Go library for integrating Echo web applications with MCP (Model Context Protocol). Installation go get github.com/BrunoKrugel/echo-mcp@v0.1.11 Changelog Others…
v0.1.10v0.1.10 · 26 Mar 2026Echo-MCP v0.1.10 This release contains the latest version of Echo-MCP, a Go library for integrating Echo web applications with MCP (Model Context Protocol). Installation go get github.com/BrunoKrugel/echo-mcp@v0.1.10 Changelog Bug fixes…
v0.1.9v0.1.9 · 12 Feb 2026Echo-MCP v0.1.9 This release contains the latest version of Echo-MCP, a Go library for integrating Echo web applications with MCP (Model Context Protocol). Installation go get github.com/BrunoKrugel/echo-mcp@v0.1.9 Changelog Others…
v0.1.8v0.1.8 · 14 Jan 2026Echo-MCP v0.1.8 This release contains the latest version of Echo-MCP, a Go library for integrating Echo web applications with MCP (Model Context Protocol). Installation go get github.com/BrunoKrugel/echo-mcp@v0.1.8 Changelog Others…
v0.1.6v0.1.6 · 9 Oct 2025Echo-MCP v0.1.6 This release contains the latest version of Echo-MCP, a Go library for integrating Echo web applications with MCP (Model Context Protocol). Installation go get github.com/BrunoKrugel/echo-mcp@v0.1.6 Changelog Others…

README

MCP Wrapper for Echo Framework

Build Status Codecov branch Go Report Card Release

Wrap any existing Echo API into MCP tools and enable AI agents to interact with your API through Model Context Protocol.

Inspired by gin-mcp but for the Echo framework.

Key Features

  • Zero Configuration: Works with any existing Echo API
  • Multiple Schema Sources: Support for Swaggo, raw OpenAPI YAML/JSON, and manual schemas
  • Filtering: Include/exclude endpoints with wildcard patterns
  • MCP Compatible: Works with any agent that supports MCP.

Installation

go get github.com/BrunoKrugel/echo-mcp

Quick Start

package main

import (
    "net/http"
    server "github.com/BrunoKrugel/echo-mcp"
    "github.com/labstack/echo/v4"
)

func main() {
    e := echo.New()

    // Existing API routes
    e.GET("/ping", func(c echo.Context) error {
        return c.JSON(http.StatusOK, map[string]string{"message": "pong"})
    })


    // Add MCP support
    mcp := server.New(e)
    mcp.Mount("/mcp")

    e.Start(":8080")
}

Now the API is accessible at http://localhost:8080/mcp

Advanced Usage

Automatic Swagger Schemas

If you already use Swaggo for Swagger documentation, enable automatic schema generation:

// @Summary Get user by ID
// @Description Retrieve detailed user information
// @Tags users
// @Param id path int true "User ID" minimum(1)
// @Success 200 {object} User
// @Router /users/{id} [get]
func GetUser(c echo.Context) error {
    // Your handler code
}

func main() {
    e := echo.New()
    e.GET("/users/:id", GetUser)

    // Enable automatic swagger schema generation
    mcp := server.NewWithConfig(e, &server.Config{
        BaseURL:              "http://localhost:8080",
        EnableSwaggerSchemas: true,
    })
    mcp.Mount("/mcp")

    e.Start(":8080")
}

Raw OpenAPI Schema Support

If you use other OpenAPI libraries like swaggest/openapi-go, you can pass a raw YAML or JSON schema string:

import (
    "github.com/swaggest/openapi-go/openapi3"
    server "github.com/BrunoKrugel/echo-mcp"
)

func main() {
    e := echo.New()

    // ... define your routes ...

    // Generate OpenAPI schema
    reflector := openapi3.Reflector{}
    reflector.SpecEns().WithOpenapi("3.0.3")
    reflector.SpecEns().Info.WithTitle("My API").WithVersion("1.0.0")

    // Add operations to reflector
    // ...

    // Export to YAML (or JSON)
    schema, _ := reflector.Spec.MarshalYAML()

    // Pass raw schema to MCP server
    // ... you can also embed the schema from an exiting openapi.yaml file
    mcp := server.NewWithConfig(e, &server.Config{
        OpenAPISchema: string(schema),
    })
    mcp.Mount("/mcp")

    e.Start(":8080")
}

The OpenAPISchema field accepts both YAML and JSON formatted strings. When provided, it automatically populates:

  • Server name from schema title
  • Description from schema description
  • Version from schema version
  • Tool schemas from operation definitions

Endpoint Filtering

Expose only the necessary endpoints to MCP tools:

mcp := server.New(e)

// Include only specific endpoints
mcp.RegisterEndpoints([]string{
    "/api/v1/users/:id",
    "/api/v1/orders",
})

// Or exclude internal endpoints
mcp.ExcludeEndpoints([]string{
    "/health",      // Exclude health checks
})

Manual Schema Registration (WIP)

For better control, register schemas manually:

type CreateUserRequest struct {
    Name  string `json:"name" jsonschema:"required,description=User full name"`
    Email string `json:"email" jsonschema:"required,description=User email address"`
    Age   int    `json:"age,omitempty" jsonschema:"minimum=0,maximum=150"`
}

type UserQuery struct {
    Page   int    `form:"page,default=1" jsonschema:"minimum=1"`
    Limit  int    `form:"limit,default=10" jsonschema:"maximum=100"`
    Active bool   `form:"active" jsonschema:"description=Filter by active status"`
}

mcp := server.New(e, &server.Config{BaseURL: "http://localhost:8080"})

// Register schemas for specific routes
mcp.RegisterSchema("POST", "/users", nil, CreateUserRequest{})
mcp.RegisterSchema("GET", "/users", UserQuery{}, nil)

Schema Generation Methods

Echo-MCP supports four schema generation approaches, with automatic fallback:

Method Use Case Priority
Raw OpenAPI Schema Using OpenAPI libraries like swaggest/openapi-go First (if OpenAPISchema is set)
Swagger Production APIs with Swaggo annotations First (if EnableSwaggerSchemas is set)
Manual Fine-grained control, complex validation Second
Automatic Quick prototyping, simple endpoints Fallback
// Option 1: Using raw OpenAPI schema (swaggest/openapi-go, etc.)
schema, _ := reflector.Spec.MarshalYAML()
mcp := server.New(e, &server.Config{
    OpenAPISchema: string(schema), // Use raw schema
})

// Option 2: Using Swaggo
mcp := server.New(e, &server.Config{
    EnableSwaggerSchemas: true, // Load from swaggo docs
})

// Option 3: Manual schemas for fine-grained control
mcp.RegisterSchema("POST", "/users", nil, CreateUserRequest{})

// Option 4: Automatic inference (fallback)
// No configuration needed - routes will use basic path/body inference

MCP Client Integration

Once your server is running:

Manual configuration

{
  "mcpServers": {
    "echo-api": {
      "type": "http",
      "url": "http://localhost:8080/mcp",
      "timeout": 120
    },
  }
}

Local Testing

For local testing, use MCP Inspector:

npx @modelcontextprotocol/inspector http://localhost:8080/mcp

Acknowledgments

README fetched from the repository 23 hours ago. The original is authoritative.

Questions

About BrunoKrugel/echo-mcp

How do I install BrunoKrugel/echo-mcp?

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

Is BrunoKrugel/echo-mcp safe to use with an AI agent?

Its trust score is 56 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 BrunoKrugel/echo-mcp still maintained?

Yes — the last commit was a month ago. The repository has 12 stars and 6 forks and 4 open issues.