Back to blog
Product update

Flexnote MCP: Access Your Local Knowledge Base from Cursor and Codex

The Flexnote desktop app now includes an MCP server. Cursor, Claude Desktop, and Codex can search and write the local library—daily notes, cards, todos, and whiteboards—without uploading data to a third-party notes cloud.

Flexnote MCP MCP notes Cursor MCP Codex MCP local notes MCP Model Context Protocol AI note-taking MCP server connect Cursor to notes

When working in Cursor or Codex, it is often necessary to consult local notes: prior decisions, literature excerpts, or a board layout. Copying text into another chat, or switching applications, splits the knowledge base from the current workflow.

The Flexnote desktop application now includes an MCP server (Model Context Protocol). The service listens on 127.0.0.1 only. Clients that implement the protocol—including Cursor, Claude Desktop, and Codex—can search, read, and write the current library. Data remains on the user's device and is not uploaded to a third-party notes cloud.

External clients can create notes and arrange a whiteboard in the local library. The same cards appear on the canvas, in the card library, and in collections

1. How MCP differs from in-app Flexnote AI

MCP is an open protocol for declaring tools that an external AI client may call. The client lists tools, invokes them by name, and receives JSON text. The model is chosen by the client; Flexnote does not mediate billing or the provider.

In-app Flexnote AI runs in the sidebar: it uses the API key configured in Settings, answers may include citations, and Agent can edit the board. MCP exposes the same library to external development tools, so daily notes, cards, todos, and whiteboards can be used without leaving the editor.

ItemFlexnote AI (in-app)Flexnote MCP
Where it runsFlexnote sidebar Chat / AgentCursor, Codex, Claude Desktop, and similar clients
ModelAPI key configured in SettingsThe model used by the client
StorageLocal knowledge baseThe same local knowledge base
Typical useQ&A and editing inside notes and boardsReading and writing the library from a development tool
Both can be used together
MCP does not replace in-app AI. Close reading and video annotation remain better in the Flexnote sidebar. Use MCP when a conclusion should be written to a journal or board from a development tool.

2. Scope

Cards, daily notes, whiteboards, todos, tags, and collections in the current workspace can be queried. Write tools require read-only mode to be turned off. Canvas operations require a whiteboard ID. If the board is not open, Flexnote navigates to it and waits until the canvas is ready, so the client request does not time out.

CategoryDescription
Search and readLibrary search, full card text, highlights, metadata, PDF and entity lists
Daily notesList and read a date; create or append (the current day if no date is given)
Cards and tagsCreate note cards, append content, apply tags, set properties, manage collections
TodosCreate, update, complete, and delete
WhiteboardList boards and nodes; create stickies, text, shapes, website cards, media cards, sections, and connections; read layout and apply local arrangement
Open in the appOpen the corresponding card or board in the Flexnote window
Capabilities not exposed via MCP
Image generation and user-confirmation prompts in the in-app conversation, as well as video frame capture and video highlights that depend on the active player, are not available over MCP. Those actions require UI context inside the Flexnote window, which an external client does not have.

3. Enabling the server

MCP is a Pro feature. A valid membership sign-in is required, and the Flexnote desktop application must be running. After the application quits, the local port closes and clients cannot connect.

  1. Open Flexnote → Settings → MCP server.
  2. Enable the service. It binds to loopback only. The default port is 39125.
  3. Copy the configuration for the client: HTTP JSON for Cursor / Claude Desktop; a stdio bridge for clients that launch a command; TOML for Codex CLI.
  4. Add the configuration to the client. The access token is for local authentication only. Do not commit it to a public repository or share it.
Enable the MCP server and copy the Cursor / Claude configuration. The token is used for local authentication only

Two additional options are relevant: read-only mode exposes query tools only and is appropriate for the first connection test; individual tools can be disabled if they should not be available to an external model.

Reconnect after changing the tool list
Clients cache the tool list. After additional canvas or connection tools are enabled in Flexnote, restart the desktop application and re-enable the MCP server in Cursor or Codex, or start a new session, so the updated list is loaded.

4. Connecting Cursor, Claude Desktop, and Codex

Cursor / Claude Desktop

Use the HTTP configuration from Settings. The required fields are the local URL and the Bearer token:

{
  "mcpServers": {
    "flexnote": {
      "url": "http://127.0.0.1:39125/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

Codex CLI

Codex CLI typically uses a stdio bridge: Node runs a script provided by Flexnote and forwards standard input to the local HTTP endpoint. Settings can copy the TOML configuration and locate the script. Set FLEXNOTE_MCP_URL and FLEXNOTE_MCP_TOKEN in the environment.

Start Flexnote first
The bridge does not launch the library. Open Flexnote, confirm that MCP status is running, then invoke tools from Codex.

5. Example requests

After the connection is established, tool names are not required. Natural-language requests are sufficient. The following statements can be used to verify the integration:

  • "Which Flexnote workspace is currently open? List recent whiteboards and five cards. Do not modify any data."
  • "Append this conclusion to today's daily note. Create the note if it does not exist. Do not save it as a regular note card."
  • "Create a note titled MCP trial. The body must start with a Markdown heading 1."
  • "On the specified whiteboard (provide whiteboardId), create two sticky notes, connect them, then read the canvas layout."
  • "List todos and mark one of them complete."
Todos can be created, updated, and completed via MCP. The list and the note belong to the same workspace

After a successful write, Flexnote displays a notification in the window. If a matching entity exists, View opens the corresponding page; otherwise the interface can be refreshed. The notification remains until it is dismissed.

6. Security

The service listens on localhost only. Other processes on the same device that hold the access token can call the same tools. Treat the token as a credential. Regenerating it in Settings invalidates previous configurations immediately.

When write tools are enabled, an external model can modify the library. For initial verification, enable read-only mode or disable create, delete, and whiteboard tools. MCP applies only to the currently open workspace. Confirm the workspace before write operations.

7. Limitations

  • Browser-only use without the desktop application provides no local MCP port.
  • This is not a team gateway and does not offer public-network access. It is not intended for sharing a library with other people.
  • Flexnote is not a real-time multiplayer whiteboard, and MCP does not add that capability. See What is Flexnote for the product scope.

8. Getting started

Update the desktop application to a build that includes MCP, sign in with a Pro account, enable the server in Settings, and add the configuration to Cursor or Codex. Verify search in read-only mode before enabling writes. Download the client from the download page. Pro details are on pricing.

Existing in-app knowledge Agent workflows do not need to change. MCP connects the same local library to external development tools.

产品更新MCPCursorCodex本地笔记知识库

Related articles

Flexnote MCP: Access Your Local Knowledge Base from Cursor and Codex | Flexnote