Skip to content

BLOG

MCP Server: Let AI Assistants Manage Nunc

FeatureMCP

Connect AI assistants to Nunc on Mac to query events and manage RSS feeds, rules, templates, and plugins.

Nunc includes a local MCP server on Mac. Connect an AI assistant to query today’s events and manage RSS feeds, rules, templates, and plugins while Nunc is running.

Setup

  1. Open Advanced Settings → MCP and enable the server.
  2. Use the Claude Code shortcut to copy an installation command, then run it in Terminal. The Cursor shortcut opens its installation prompt.
  3. For other compatible clients, copy the connection configuration from the same settings panel.

The server listens only on localhost. The default endpoint is http://127.0.0.1:39281/mcp, using Streamable HTTP and Bearer-token authentication. The port can be changed to a value from 1024 to 65535. Keep Nunc running, and update your client configuration after changing the port or regenerating the token.

MCP no longer requires Experimental Features. The built-in GitHub repository tools and External Events tools from the original implementation are no longer available.

Read the built-in documentation first

The current server exposes 46 tools, including get_documentation. Before using other tools, the assistant must read the relevant topic: rss, plugin, rule, template, online_plugin, or event.

These documents are bundled with Nunc and include the relevant tool definitions. They do not require fetching documentation from the web.

What you can do

  • Events — Query today’s events with keyword filtering and snapshot-checked pagination, explain rule effects, and refresh sources.
  • RSS — Add, update, enable, disable, or remove subscriptions.
  • Rules and templates — Validate SideScript, preview a rule, save changes, and reorder rules.
  • Custom plugins — Inspect, create, duplicate, edit, and test JavaScript plugins. Their fetchEvents(config) entry point must be synchronous.
  • Online plugins — Search the marketplace, install, check for updates, update, uninstall, read or update configuration, and toggle enabled state. Copy eligible plugins into editable custom plugins. MCP does not edit the downloaded original’s source code.

Marketplace, diagnostics, and event queries

  • list_online_plugins and get_online_plugin include names, descriptions, versions, isCopyable, and eventSourceId alongside configuration and parameters.
  • search_online_plugins searches the configured marketplace; check_online_plugin_updates checks installed plugins against a refreshed catalog. Review compatibility, permissions, required parameters, and breaking changes before using install_online_plugin or update_online_plugin. Both require directory_name and expected_revision from the catalog entry’s revision, so changed source or metadata is rejected. Installation starts enabled; updates preserve saved configuration and enabled state. uninstall_online_plugin removes installed source and configuration, leaving custom copies independent. Running or queued plugins must finish before MCP can uninstall them.
  • get_plugin_diagnostics reports observed execution time, duration, errors, event counts, missing required parameters, and service configuration flags. It does not execute plugins or probe the network. History starts with the current app session; built-in plugin callbacks do not expose success or failure, so that status remains unknown. Configuration flags do not verify connectivity or credential validity.
  • list_today_events accepts query, offset, and snapshot_token. Continue using nextOffset and snapshotToken from the previous response, keeping filters unchanged. A changed snapshot or filter requires restarting at offset zero. Each page contains up to 1,000 events.
  • explain_event takes event_id and optional source_id from raw events. It reports current rule matches and actions using existing AI decision caches only, without making AI requests. When decisions are unavailable, isComplete is false and uncertain result fields are omitted. This explains the current snapshot; it is not a historical execution record.

Copy a plugin

Read get_documentation with topic plugin for custom plugins or online_plugin for downloaded plugins, then use:

  • duplicate_custom_plugin({"plugin_id":"UUID from list_custom_plugins"}) to copy a saved custom plugin.
  • duplicate_online_plugin({"directory_name":"directoryName from list_online_plugins"}) to copy an installed online plugin that allows copying. Plugins that disallow copying are rejected.

Both tools return the new custom plugin’s details, including its UUID, source, and configuration. The copy gets a unique numbered name and starts enabled, matching the app’s Copy action. Normal refresh can execute it. The original remains unchanged, and runtime storage and cached events are not copied. Online copies retain saved configuration and add empty values for declared parameters that have no saved value.

Use update_custom_plugin with the returned UUID to edit the copy, or set_custom_plugin_enabled to disable it.

For example, ask your assistant to add a feed, highlight release announcements, or test a custom news plugin. Validate and preview rules before saving, and review changes in Nunc.

For SideScript syntax, see the syntax guide, templates and context conditions, and AI Decision.