@eventcatalog/mcp-server

中文文档
2.1.0发布于 2025/12/09MITTypeScriptES Module构建来源已验证近 30 天下载 3618

MCP server for EventCatalog

原始使用文档
文档目录18 节
  1. Save time and money by getting insights from your EventCata…
  2. Why EventCatalog MCP Server?
  3. EventCatalog MCP Features
  4. Installation
  5. Installing via Smithery
  6. Running as a Docker Container
  7. Transport Modes
  8. STDIO Mode (Default)
  9. HTTP Mode
  10. Setup MCP Clients
  11. Adding the MCP server to Claude Desktop
  12. Adding the MCP server to Cursor
  13. Configuration for your project
  14. Tools
  15. Resources
  16. Missing an API?
  17. Contributing
  18. Running Tests

📖 EventCatalog - MCP Server

Save time and money by getting insights from your EventCatalog directly from your MCP Client (Claude, Cursor, Windsurf, etc)

EventCatalog

Features: Ask about domains, services and messages. Get answers in seconds. Request schemas, who owns what and much more.

Read the Docs | View Demo


Why EventCatalog MCP Server?

EventCatalog is an Open Source tool that helps you document your event-driven architecture. Using EventCatalog you can document your domains, services and messages, schemas and much more.

Using the EventCatalog MCP Server you can get more value from your EventCatalog by asking questions about your architecture in the tools you already use.

Example questions:

  • What events do we have in our architecture?
  • Tell me more about the {service} service.
  • I want to create a new feature that will send emails when a user signs up, what events do we have in our architecture that are related to user signups?
  • Get me the schema for the event UserCreated in EventCatalog.
  • Here is a new version of the UserCreated schema, what downstream consumers will be affected by this change?

Rather then digging through your architecture to find the answers you need, you can ask the MCP server directly from your MCP Client.


EventCatalog MCP Features

  • 🤖 Connect to any MCP Client (Claude, Cursor, Windsurf, etc)
  • 🤖 Run MCP server locally on your machine with one command
  • 🤖 Connect to your EventCatalog instances
  • 🤖 Ask questions about your architectures
  • 🤖 Ask questions about your OpenAPI and AsyncAPI specifications
  • 🤖 Ask about domains, services and messages, and much more
  • 🤖 Get the schemas for events, queries, commands and services (OpenAPI, AsyncAPI, JSON Schema)
  • 🤖 Ask questions about ubiquitous language for any domain and their entities

Getting Started

Installation

First, you need to enable the LLMS.txt feature in your EventCatalog instance.

  1. Enable the LLMS.txt feature in your EventCatalog instance, by configuring your eventcatalog.config.js file.
  2. Deploy your EventCatalog instance with the LLMS.txt feature enabled.

Next, you will need to get a EventCatalog Scale license key, you can get a 14 day trial license key from EventCatalog Cloud.

Installing via Smithery

To install EventCatalog for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @event-catalog/mcp-server --client claude

Running as a Docker Container

If you want to run the MCP server as a standalone Docker container (for example, to run it as an HTTP server), see the Docker Deployment Guide.

This is useful for:

  • Running the MCP server in production environments
  • Deploying as a containerized service
  • Running in HTTP mode for integration with multiple clients
  • Kubernetes, Docker Swarm, or other container orchestration platforms

Transport Modes

The EventCatalog MCP Server supports two transport modes:

STDIO Mode (Default)

  • Uses standard input/output for communication
  • Ideal for local development and MCP clients like Claude Desktop and Cursor
  • Started automatically when you add the server to your MCP client
  • No port exposure needed
  • Recommended for: Claude Desktop, Cursor, Windsurf, and other desktop MCP clients

HTTP Mode

  • Runs as an HTTP server on a specified port (default: 3000)
  • Ideal for production deployments and container environments
  • Allows multiple clients to connect to a single server instance
  • Includes health check endpoints for monitoring
  • Recommended for: Docker deployments, Kubernetes, production environments, and multi-client setups

To use HTTP mode, pass http as the transport parameter:

npx -y @eventcatalog/mcp-server {URL} {LICENSE_KEY} http {PORT}

Or set the MCP_TRANSPORT environment variable to http (see Docker Deployment Guide for details).

Setup MCP Clients

Each MCP client has a different way of adding the MCP server.

You can find some helpful links below to get started.

Adding the MCP server to Claude Desktop

To use this with Claude Desktop, add the following to your claud_desktop_config.json file. The full path on MacOS: ~/Library/Application Support/Claude/claud_desktop_config.json, on Windows: %APPDATA%\Claude\claud_desktop_config.json

{
  "mcpServers": {
    "eventcatalog": {
      "command": "npx",
      "args": [
        "-y",
        "@eventcatalog/mcp-server",
        "https://demo.eventcatalog.dev", // Replace with your EventCatalog URL
        "ABCD-1234-5678-9012-3456-7890" // Replace with your EventCatalog Scale license key
      ]
    }
  }
}

Adding the MCP server to Cursor

Go to Cursor Settings -> MCP Servers -> Add MCP Server.

  • Name: eventcatalog
  • Command: npx
  • Args: -y @eventcatalog/mcp-server {URL_TO_YOUR_EVENTCATALOG_INSTANCE}

Configuration for your project

You can also create .mcp.json files in your project to configure the MCP server for your project using Cursor.

{
  "mcpServers": {
    "eventcatalog": {
      "command": "npx",
      "args": ["-y", "@eventcatalog/mcp-server", "https://demo.eventcatalog.dev", "ABCD-1234-5678-9012-3456-7890"]
    }
  }
}

You can read more about configuration for your project in the Cursor documentation.

API

Here is a list of all the APIs that the MCP server supports.

Tools

  • find_resources
    • Find resources that are available in EventCatalog including services, domains, events, commands, queries, flows, entities, channels, teams, users, and docs
    • Supports filtering by type and search terms
    • Includes pagination support with cursors
  • find_resource
    • Get more information about a service, domain, event, command, query, flow, entity, or channel in EventCatalog using its id and version
    • Returns complete resource details including specifications, owners, producers, and consumers
  • find_owners
    • Find owners (teams or users) for a domain, service, message, event, command, query, flow, or entity in EventCatalog
    • Returns detailed owner information with documentation links
  • find_producers_and_consumers
    • Get the producers (sends) and consumers (receives) for services in EventCatalog
    • Helps understand message flow and service dependencies
  • get_schema
    • Returns the schema for a service (e.g., OpenAPI, AsyncAPI, GraphQL), event, command, or query in EventCatalog
    • Supports all major schema formats
  • review_schema_changes
    • Reviews schema changes for breaking changes and suggests fixes
    • Compares old and new schemas to identify potential issues
    • Provides recommendations for handling breaking changes
  • explain_ubiquitous_language_terms
    • Explain ubiquitous language terms for a given domain
    • Returns definitions and context for domain-specific terminology
  • create_flow
    • Create a new flow in EventCatalog given a description of the business workflow
    • The tool will check all your resources in EventCatalog to find the best resources to match against the description
    • The flow will be created (markdown file) and can be visualized in EventCatalog
  • eventstorm_to_eventcatalog
    • Turn a photo of an EventStorm session into an EventCatalog
    • Automatically generates domains, services, events, commands, flows, and ubiquitous language terms
    • Creates proper folder structure and MDX files with frontmatter
  • create_eventcatalog
    • Create a new EventCatalog project from scratch
    • Generates all necessary configuration files (package.json, eventcatalog.config.ts)
    • Sets up the complete folder structure and initial documentation

Resources

Resources provide quick access to collections of data from your EventCatalog. They can be used to get context about your architecture.

  • eventcatalog://all
    • All resources in EventCatalog (messages, domains, services, flows, teams, users, etc.)
    • Use this for a complete overview of your architecture
  • eventcatalog://events
    • All events in EventCatalog
    • Includes event names, versions, and descriptions
  • eventcatalog://commands
    • All commands in EventCatalog
    • View all command messages in your system
  • eventcatalog://queries
    • All queries in EventCatalog
    • Access all query messages
  • eventcatalog://services
    • All services in EventCatalog
    • Complete list of services with their metadata
  • eventcatalog://domains
    • All domains in EventCatalog
    • View domain boundaries and subdomains
  • eventcatalog://flows
    • All flows (business processes) in EventCatalog
    • Access workflow definitions and state machines
  • eventcatalog://teams
    • All teams in EventCatalog
    • View team information and ownership
  • eventcatalog://users
    • All users in EventCatalog
    • Access user profiles and ownership information

Missing an API?

We are working on adding more APIs to the MCP server. If you need something specific, please open an issue and we will add it to the server.

Contributing

  1. Clone the repository
  2. Run npm install to install the dependencies
  3. Run npm run build

Running Tests

npm test

To run tests with coverage:

npm test:coverage

To use the build as your MCP server you can point your MCP client to the dist folder.

Example for Cursor:

{
  "mcpServers": {
    "eventcatalog": {
      "command": "npx",
      "args": ["-y", "tsx /PATH_TO_YOUR_REPO/src/index.ts",  "https://demo.eventcatalog.dev", "ABCD-1234-5678-9012-3456-7890"]
    }
  }
}

License

Usage of this feature is part of the EventCatalog Scale Plan

版本与发布记录

@eventcatalog/mcp-server 共发布 12 个版本,首次发布于 2025/03/17;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.1.0latest2025/12/0911 个月前
2.0.12025/12/0911 个月前
2.0.02025/12/0911 个月前
1.2.02025/10/271 年前
1.1.02025/06/271.4 年前
1.0.32025/06/251.4 年前

关于 @eventcatalog/mcp-server 的常见问题

@eventcatalog/mcp-server 是什么?

MCP server for EventCatalog

如何安装 @eventcatalog/mcp-server?

在项目目录运行 npm install @eventcatalog/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 eventcatalog-mcp-server,可以用 npx eventcatalog-mcp-server 直接运行。

@eventcatalog/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@eventcatalog/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@eventcatalog/mcp-server 可以商用吗?

@eventcatalog/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@eventcatalog/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@eventcatalog/mcp-server 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,618 次,日均约 121 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@eventcatalog/mcp-server 还在维护吗?

最新版本 2.1.0 发布于 2025/12/09(11 个月前);至今共发布 12 个版本,其中过去 12 个月发布了 3 个;首次发布于 2025/03/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。