drio
Open app

AutoMCP

Source

Library for autogenerating MCP server and client code based on a specified YAML schema

Catalog onlyCatalog onlySTDIO

Overview

AutoMCP is a library designed to autogenerate server and client code based on a specified YAML schema for the Model Context Protocol (MCP).

To use AutoMCP, clone the repository, install the dependencies, define your service in a YAML file, and run the generator script to create the server and client code.

  • Generates MCP-compatible server code - Creates client libraries for easy service consumption - Generates handler stubs for implementing tool functionality - Organizes generated code by service in dedicated directories
  1. Rapidly developing server and client applications based on service definitions.
  2. Simplifying the implementation of tool functionalities with autogenerated handlers.
  3. Facilitating the integration of services in agentic workflows.

Add to your AI client

Use these steps to connect AutoMCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "automcp-beaukuhn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "automcp-beaukuhn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "automcp-beaukuhn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "automcp-beaukuhn": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "automcp-beaukuhn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "automcp-beaukuhn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-automcp-beaukuhn"
      ]
    }
  }
}

FAQ

What are the prerequisites for using AutoMCP?

You need Node.js 18 or higher and npm or yarn installed.

How do I define a service?

Create a YAML file in the `services/[service-name]/` directory with the required structure.

Can I test the generated services?

Yes! Use the provided test script to verify the functionality of your services.