Skip to content

MCP server

The panel’s agent is not the only one that can work in your vault. The plugin Model Context Protocol Server serves the vault’s tools over MCP while the window is open, so an assistant you already use — in your terminal, in your editor — can search your notes, read them, write them and connect them. The application answers no questions from outside; it asks agents from inside and serves the vault to them through this plugin.

http://127.0.0.1:3333/mcp

That address is the loopback interface: nothing outside your computer can connect to it. While the plugin is enabled, Numen listens on the port of the plugin’s Port setting, on its page in the settings (3333 by default, a number from 1024 to 65535), and starts the plugin when an agent connects. A changed port takes effect at once. The server uses the vault open in the window.

The server accepts only a request that has the plugin’s token. Numen generates the token, 64 hexadecimal characters, when it first loads the enabled plugin, and stores it in the plugin’s Token setting on its page in the settings. Copy it from there into your agent’s configuration. You can replace it with a token of your own; while the setting is empty the server rejects every request. A changed token takes effect at once, and an agent configured with the old one is rejected.

The server also rejects a request sent by a web page that is not served from your own computer.

Add the address and the token to your agent’s MCP configuration, with your token in place of <token>. The transport is streamable HTTP:

{
"mcpServers": {
"numen": {
"type": "http",
"url": "http://127.0.0.1:3333/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}

The same four families the panel’s agent has — notes, links, documents and vaults. It works on the vault the window is showing, and on no other.

There is no tool that erases a vault from disk. Removing a folder needs your confirmation in the window.

Disable the plugin on its page in the settings. The port is closed while the plugin is disabled.

Any program running as you can connect to the port while it is open. A program that has the token is granted everything the tools grant.