Skip to main content

Using Cursor with EventCatalog

Cursor supports the MCP protocol. This means you can use EventCatalog with Cursor.

Using cursor you can ask questions about your architecture, get schema information for your services and messages, directly in your code editor.

EventCatalog Setup

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.

Adding the MCP server to Cursor

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

  • Name: eventcatalog
  • Type: 'command'
  • Command: npx -y @eventcatalog/mcp-server {URL_TO_YOUR_EVENTCATALOG_INSTANCE}
    • example: npx -y @eventcatalog/mcp-server https://demo.eventcatalog.dev

Configuration for your project

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

You can use this to setup cursor and EventCatalog for everyone on your team.

{
"mcpServers": {
"eventcatalog": {
"command": "npx",
"args": ["-y", "@eventcatalog/mcp-server", "https://demo.eventcatalog.dev"]
}
}
}

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