Skip to main content
Glama
EventHorizon MCP Server

EventHorizon MCP Server

EventHorizon MCP Server

A Model Context Protocol (MCP) server for integrating with the EventHorizon Django event management platform.

Installation

Run directly using npx without cloning:

npx github:NotoriousArnav/EventHorizon-MCP

From Source

git clone https://github.com/NotoriousArnav/EventHorizon-MCP.git
cd EventHorizon-MCP
npm install
npm run build

Related MCP server: realevents-mcp

Configuration

Environment Variables

Variable

Required

Default

Description

EVENTHORIZON_BASE_URL

Yes

http://localhost:8000

EventHorizon API URL

EVENTHORIZON_API_TOKEN

Yes

-

Knox authentication token

LOG_LEVEL

No

info

debug, info, warn, error

API_TIMEOUT

No

30000

Request timeout in ms

Getting a Knox Token

  1. Log into your EventHorizon Django instance

  2. Go to Django Admin > Knox Tokens > Add Token

  3. Or use the API: POST /api/auth/login/ with credentials

MCP Client Setup

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json (Linux) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "eventhorizon": {
      "command": "npx",
      "args": ["-y", "github:NotoriousArnav/EventHorizon-MCP"],
      "env": {
        "EVENTHORIZON_BASE_URL": "http://localhost:8000",
        "EVENTHORIZON_API_TOKEN": "your_knox_token_here"
      }
    }
  }
}

OpenCode

Add to your OpenCode MCP config (~/.config/opencode/config.json):

{
  "mcp": {
    "servers": {
      "eventhorizon": {
        "type": "local",
        "command": ["npx", "-y", "github:NotoriousArnav/EventHorizon-MCP"],
        "env": {
          "EVENTHORIZON_BASE_URL": "http://localhost:8000",
          "EVENTHORIZON_API_TOKEN": "your_knox_token_here"
        }
      }
    }
  }
}

Cursor

Add to Cursor's MCP settings:

{
  "mcpServers": {
    "eventhorizon": {
      "command": "npx",
      "args": ["-y", "github:NotoriousArnav/EventHorizon-MCP"],
      "env": {
        "EVENTHORIZON_BASE_URL": "http://localhost:8000",
        "EVENTHORIZON_API_TOKEN": "your_knox_token_here"
      }
    }
  }
}

Local Development

If running from source:

{
  "mcpServers": {
    "eventhorizon": {
      "command": "node",
      "args": ["/absolute/path/to/EventHorizon-MCP/dist/index.js"],
      "env": {
        "EVENTHORIZON_BASE_URL": "http://localhost:8000",
        "EVENTHORIZON_API_TOKEN": "your_knox_token_here"
      }
    }
  }
}

Available Tools

Event Management

Tool

Description

list_events

List events with optional search/location filters

get_event

Get detailed event information by ID

create_event

Create a new event

update_event

Update an existing event

delete_event

Delete an event (organizer only)

Registration

Tool

Description

register_for_event

Register for an event

unregister_from_event

Cancel registration

get_event_registrations

View registrations (organizer only)

manage_registration

Approve/waitlist/cancel registration

User

Tool

Description

get_my_profile

Get current user profile

get_my_registrations

List your event registrations

get_my_hosted_events

List events you organize

Utility

Tool

Description

health_check

Test API connection and auth

Development

# Install dependencies
npm install

# Run in development mode (hot reload)
npm run dev

# Build for production
npm run build

# Run production build
npm start

# Run tests
npm test

Testing Without an MCP Client

Use the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Or send raw JSON-RPC:

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | node dist/index.js

Requirements

  • Node.js 18+

  • EventHorizon Django instance with Knox authentication enabled

License

MIT

Available Tools

13 tools
create_eventC

Create a new event. Requires title, description, start/end times, location, and capacity.

Inputs: title (required), description (required), start_time (required), end_time (required), +2 more.

delete_eventA

Delete an event. Only the organizer can delete their events.

Inputs: event_id (required).

get_eventC

Get detailed information about a specific event by its ID.

Inputs: event_id (required).

get_event_registrationsB

Get all registrations for an event. Only available to the event organizer.

Inputs: event_id (required).

get_my_hosted_eventsB

Get all events organized by the current user.

Inputs: no named parameters.

get_my_profileB

Get the current user's profile information.

Inputs: no named parameters.

get_my_registrationsB

Get all events the current user is registered for.

Inputs: no named parameters.

health_checkA

Check the connection to the EventHorizon API and verify authentication.

Inputs: no named parameters.

list_eventsC

List all available events. Optionally filter by search term or location.

Inputs: search, location.

manage_registrationA

Manage a registration (approve, waitlist, or cancel). Only available to the event organizer.

Inputs: registration_id (required), action (required).

register_for_eventC

Register the current user for an event.

Inputs: event_id (required), answers.

unregister_from_eventC

Unregister the current user from an event.

Inputs: event_id (required).

update_eventB

Update an existing event. Only provide the fields you want to change.

Inputs: event_id (required), title, description, start_time, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no overlap. For example, get_event retrieves event details while get_event_registrations focuses on attendee data, and tools like register_for_event and unregister_from_event are precise opposites. The descriptions reinforce these distinctions, making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern using snake_case, such as create_event, list_events, and get_my_profile. The naming is predictable and readable throughout, with no deviations in style or convention, which aids agent comprehension.

    Tool Count5/5

    With 13 tools, the count is well-scoped for an event management domain, covering core operations like CRUD for events, registration handling, and user-specific queries. Each tool earns its place without redundancy, fitting typical server scope expectations.

    Completeness5/5

    The toolset provides complete coverage for event management, including full CRUD for events (create, get, update, delete), registration lifecycle (register, unregister, manage), and user-specific views (hosted events, registrations, profile). There are no obvious gaps, ensuring agents can handle end-to-end workflows without dead ends.

    Related MCP Connectors

    Related MCP Servers