lietzsche;noether
Pages

updated 2026-11-26·7 min read

MCP Setup Guide

Connect Claude Desktop, Cursor, OpenAI Codex CLI, and Antigravity to Noether over stdio MCP, with automatic vault discovery, stdio and in-app tool catalogs, prompts, and custom scripts.

How to connect AI assistants like Claude Desktop, Cursor, and Antigravity directly to your Noether notes and tasks.

1. What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI agents to discover and call tools exposed by applications. Noether implements an in-app MCP tool registry (NativeMcpTools) plus a standalone stdio MCP server (bin/noether-mcp-server.cjs) for external clients.

2. Architecture & Tool Scopes

Noether exposes MCP tools in two environments:

  1. Standalone Stdio Server (bin/noether-mcp-server.cjs): Used by external clients (Claude Desktop, Cursor, Codex, Antigravity). Exposes 16 noether_* tools, 2 built-in vault readers (tasks_get_all and fsrs-spaced-repetition_get_due_cards), and any .noether/tools/*.js custom tools in the active vault.
  2. In-App Tool Registry (appInstance.tools): Used inside the running desktop app. Registers 27 native noether_* tools (adding UI, property, tag, and PDF helpers) plus any tools registered by enabled extensions ({extensionId}_{toolName}).

3. In-App Agent Usage

If you are writing an extension or internal feature, you can call the in-app registry directly:

import { appInstance } from 'noether';

// List all available tools
const tools = appInstance.tools.getAllTools();
console.log(tools.map(t => t.name));

// Execute a tool
const result = await appInstance.tools.executeTool('noether_search_notes', { query: 'meeting notes' });
console.log(result.content);

// Get MCP-formatted schemas for LLM function calling
const schemas = appInstance.tools.getMcpToolSchemas();

4. Automatic Vault Discovery

Noether discovers all your Vaults automatically without requiring you to hardcode folder paths in your AI client settings.

When an AI agent connects to noether-mcp-server.cjs:

  1. It reads Noether’s saved config to attach to the currently active Vault.
  2. It can call noether_list_vaults to list known Vaults on your computer.
  3. It can switch workspaces via noether_switch_vault without restarting the connection.
  4. It can search across all workspaces via noether_search_across_vaults.

5. External Agent Setup (Claude Desktop / Cursor / Antigravity)

Because Noether finds your active vault on its own, connecting external assistants only requires pointing them to bin/noether-mcp-server.cjs:

Claude Desktop

Add Noether to claude_desktop_config.json:

{
  "mcpServers": {
    "noether": {
      "command": "node",
      "args": ["<path-to-noether>/bin/noether-mcp-server.cjs"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project or home directory:

{
  "mcpServers": {
    "noether": {
      "command": "node",
      "args": ["<path-to-noether>/bin/noether-mcp-server.cjs"]
    }
  }
}

OpenAI Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.noether]
command = "node"
args = ["<path-to-noether>/bin/noether-mcp-server.cjs"]

Or add via CLI:

codex mcp add noether -- node <path-to-noether>/bin/noether-mcp-server.cjs

Antigravity & Agent CLI

Noether tools are auto-discovered when the MCP server is configured in your agent workspace settings.

6. Available Core Tools

Tools marked Stdio + In-App work everywhere; tools marked In-App only are registered by NativeMcpTools inside the running desktop app.

ToolScopeDescription
noether_search_notesStdio + In-AppFull-text or disk search across notes in the active Vault
noether_read_noteStdio + In-AppRead a note’s content and frontmatter
noether_create_noteStdio + In-AppCreate (or upsert over stdio) a markdown note
noether_update_noteStdio + In-AppUpdate a note’s content
noether_delete_noteStdio + In-AppMove a note to .trash/
noether_list_all_notesStdio + In-AppList notes in the active Vault
noether_get_backlinksStdio + In-AppGet incoming backlinks and references
noether_list_vaultsStdio + In-AppList all known Vaults
noether_get_active_vaultStdio + In-AppGet name, path, and stats for the active Vault
noether_switch_vaultStdio + In-AppSwitch the active Vault workspace on the fly
noether_search_across_vaultsStdio + In-AppSearch notes across all known Vaults
noether_run_scriptStdio + In-AppExecute an ad-hoc script against the active Vault
noether_create_custom_toolStdio + In-AppPersist a custom tool script into .noether/tools/
noether_list_custom_toolsStdio + In-AppList saved custom tools in the active Vault
noether_run_custom_toolStdio + In-AppExecute a saved custom tool by name
noether_delete_custom_toolStdio + In-AppRemove a custom tool from .noether/tools/
noether_rename_noteIn-App onlyRename a note and refactor wikilinks
noether_get_note_propertiesIn-App onlyGet frontmatter properties
noether_set_note_propertiesIn-App onlySet frontmatter properties
noether_toggle_bookmarkIn-App onlyToggle bookmark status
noether_get_tagsIn-App onlyList all tags with counts
noether_get_documents_by_tagIn-App onlyFind documents by tag
noether_create_vaultIn-App onlyCreate a new Vault workspace
noether_toggle_sidebarIn-App onlyToggle left or right sidebar visibility
noether_toggle_split_viewIn-App onlyToggle split editor pane
noether_insert_tableIn-App onlyInsert an interactive table grid
noether_pdf_get_infoIn-App onlyInspect attached PDF metadata

7. Built-in MCP Prompts

Prompt NameScopeDescriptionArguments
noether_system_instructionsStdio + In-AppExplains Noether’s formatting, wikilinks, flashcards, tasks, and cascadesNone over stdio; mode?: "concise" | "comprehensive" in-app
noether_daily_reviewIn-App onlyPulls today’s journal note and workspace stats for a daily summarydate?: string (YYYY-MM-DD)
noether_synthesize_topicIn-App onlyCollects matching notes on a subject to build a synthesis prompttopic: string (required)

8. Extension Tools & Custom Registration

The standalone stdio server includes built-in shortcuts for tasks_get_all and fsrs-spaced-repetition_get_due_cards. Inside the desktop app, enabled extensions register additional tools automatically:

  • tasks_get_all: Retrieve pending and completed tasks across the vault.
  • canvas_get_board: Retrieve canvas nodes and connection edges.
  • journal_open_today: Open or create today’s journal note.
  • fsrs-spaced-repetition_get_due_cards: Retrieve flashcards due for review (when the FSRS community extension is installed).
  • noether-cascade_list: List sequential cascade books (when the Cascade community extension is installed).

Registering Tools in Extensions

Extensions register tools in their onload() method via the Noether SDK:

// Inside Extension.onload()
this.registerTool({
  name: 'my_tool',
  description: 'Calculates custom metrics for a document',
  schema: z.object({
    documentId: z.string().describe('Target document ID'),
  }),
  handler: async ({ documentId }) => {
    return {
      content: [{ type: 'text', text: 'Result computed successfully' }],
    };
  },
});

9. Dynamic Script Execution & Custom Agent Tools

External agents can also run ad-hoc JavaScript or save reusable custom tools under .noether/tools/.

Running Ad-Hoc Scripts (noether_run_script)

Agents can execute JavaScript against the active Vault inside a vm.Script sandbox:

{
  "name": "noether_run_script",
  "arguments": {
    "script": "const notes = vault.scanNotes('Projects'); const tasks = vault.getTasks('pending'); return { projectsCount: notes.length, pendingTasks: tasks.length };"
  }
}

The vm.Script sandbox exposes vault (also aliased on context.vault with readNote, writeNote, deleteNote, scanNotes, searchNotes, getBacklinks, getTasks, getDueCards, resolveNote, listVaults), console, path, Buffer, args, parseFrontmatter, and serializeFrontmatter.

Authoring Persistent Custom Tools (noether_create_custom_tool)

For recurring workflows, an agent can persist a tool module into <vault>/.noether/tools/<name>.js. Saved tool scripts execute via handler(args, context) where vault sits on context.vault:

{
  "name": "noether_create_custom_tool",
  "arguments": {
    "name": "summarize_weekly_journal",
    "description": "Scans all daily notes from the last 7 days and extracts key achievements and blockers",
    "parameters": {
      "type": "object",
      "properties": {
        "days": { "type": "number", "description": "Number of days to inspect (default: 7)" }
      }
    },
    "script": "const days = Number(args.days) || 7; const notes = context.vault.scanNotes('Journal'); return { inspected: notes.length, days };"
  }
}

Once created:

  1. noether-mcp-server.cjs validates syntax with new vm.Script(...) and saves <vault>/.noether/tools/<name>.js.
  2. It registers custom_<name> in tools/list (loaded via require() when called).
  3. The server emits notifications/tools/list_changed so clients refresh their tool list.
  4. Agents can call noether_run_custom_tool immediately, inspect tools with noether_list_custom_tools, or delete them with noether_delete_custom_tool.

Search wiki and portfolio

type to search across all entries.