emoment-mcp
v0.3.7
Published
MCP server for Emoment (event management) and DA (digital asset) APIs
Maintainers
Readme
emoment-mcp
MCP server for Emoment and DA APIs.
Expose 1114 tools (692 Emoment + 422 DA) via the Model Context Protocol.
Install
npm install -g emoment-mcpOr run directly without install:
npx emoment-mcpQuick Start
1. Set credentials
export EMOMENT_PHONE=your_phone_number
export EMOMENT_PASSWORD=your_passwordThe server auto-fetches token from /api/authentication/verfiy_password_login_by_phone on first use.
2. Run
Stdio mode (for Claude Desktop, Cursor, etc.):
emoment-mcpHTTP mode (for web integration):
export HTTP_PORT=3000
emoment-mcp-httpThen open http://localhost:3000/sse for SSE endpoint.
Claude Desktop Config
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"emoment": {
"command": "npx",
"args": ["-y", "emoment-mcp"],
"env": {
"EMOMENT_PHONE": "your_phone_number",
"EMOMENT_PASSWORD": "your_password"
}
}
}
}Authentication
Credential priority (highest to lowest):
- Environment variables:
EMOMENT_PHONE/EMOMENT_PASSWORD - Tool body: Pass
phoneandlogin_account_pwdin the request body (auto-cached for reuse)
If neither is set, the server will report a missing credential error.
Token Auto-Refresh
When a tool call returns 401 / 403 (HTTP status) or err_code: 401 / err_code: 1001 (API response), the server will:
- Automatically clear the cached token
- Re-login with the stored phone/password
- Retry the original request once
Available Tools
All tools follow the pattern emoment_<tag>_<action> or da_<tag>_<action>.
Examples:
emoment_event_get_event— Get event detailsemoment_invitation_create_invitation_code— Create invitation codeemoment_user_upload_user— Bulk import attendeesda_content_get_all_seasons— List all seasonsda_admin_get_bindding_list— Get event bindings
Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| EMOMENT_PHONE | Yes* | Your Emoment login phone number |
| EMOMENT_PASSWORD | Yes* | Your Emoment login password |
| HTTP_PORT | No | HTTP server port (default: 3000) |
*If not set via environment, you must pass
phoneandlogin_account_pwdin the tool body on the first call.
License
MIT
