Skip to content

MCP

Connect MCP Clients

Connect Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI, ChatGPT, Claude.ai, and other MCP clients to Wenlan.

Qi-Xuan LuUpdated 4 min read

At a glance

01

Wenlan's daemon owns the source-backed wiki and retrieval boundary; wenlan-mcp exposes it over stdio for local clients and Streamable HTTP for web clients.

02

Claude Code and Codex have plugin paths, local clients use wenlan connect, and ChatGPT or Claude.ai use a Remote Access URL.

01

How the pieces connect

The daemon runs locally and owns captures, source-backed pages, sessions, and retrieval. wenlan-mcp is the connector clients use when they need Wenlan tools.

Local clients launch wenlan-mcp over stdio. ChatGPT and Claude.ai use its Streamable HTTP endpoint through a temporary HTTPS tunnel URL. Remote Access launches the loopback server with --no-auth, so possession of the URL grants access. Both paths reach the same daemon.

02

Set up the local runtime

Run this once before wiring another MCP client. It prepares the local Wenlan runtime that wenlan-mcp talks to.

Terminal

npx -y wenlan setup

03

Add a client

After setup, ask the Wenlan CLI to write a local client's MCP configuration with wenlan connect <client>. It uses the local wenlan-mcp binary installed beside the CLI, with npm as a fallback when needed.

Terminal

~/.wenlan/bin/wenlan connect claude-code
# or: codex, cursor, claude-desktop, vscode, gemini

04

Manual config fallback

If a client only accepts a raw JSON configuration, point it at the local MCP connector that setup installed. Use wenlan connect --dry-run to see the exact path for your machine.

If the daemon is running on a non-default local URL for development, wenlan-mcp also accepts --origin-url. Keep normal users on the default 127.0.0.1:7878 path.

mcpServers

{
  "mcpServers": {
    "wenlan": {
      "command": "/Users/you/.wenlan/bin/wenlan-mcp"
    }
  }
}

05

Non-default daemon URL

Most users should not need this. It is for development or isolated testing when wenlan-server is intentionally running on a different local port.

Use it together with isolated data so an MCP client does not accidentally talk to the wrong daemon.

MCP connector

wenlan-mcp --origin-url http://127.0.0.1:7879

06

Claude Code

The Claude Code plugin is the most complete path because it includes slash commands, setup checks, and the daily workflow around the MCP server.

After installing the plugin, restart Claude Code if prompted, then run /setup.

Claude Code

/plugin marketplace add 7xuanlu/claude-plugins
/plugin install wenlan@7xuanlu
/setup

07

Codex

Codex can use the Codex plugin shipped in plugin-codex, or connect directly through the local MCP path. The direct path does not require a Wenlan source checkout.

Terminal

npx -y wenlan setup
~/.wenlan/bin/wenlan connect codex

08

ChatGPT and Claude.ai

The guided path is Wenlan desktop app > Remote Access. It starts the released Streamable HTTP MCP server with --no-auth on loopback, creates a temporary HTTPS tunnel URL, and shows the connection steps for both web clients. Possession of the URL grants access.

In ChatGPT, open Settings > Plugins, create a New Plugin, choose Server URL under Connection, paste the Remote Access URL, and set Authentication to None. In Claude.ai, install Wenlan from the 7xuanlu/wenlan marketplace through Directory > Plugins; the desktop app can also run that setup when the connector is not detected.

This is a custom MCP connection to your own Wenlan runtime. It does not mean Wenlan is publicly listed in the ChatGPT Apps Directory. Stop Remote Access when you are not using it.

Read desktop Remote Access status

09

Other local clients

Cursor, Claude Desktop, Gemini CLI, VS Code, and other supported local MCP clients use wenlan connect <client>.

The settings screen differs by client. The important part is that the client launches the Wenlan MCP connector installed by setup.

10

Verify the connection

After connecting a client, run its available Wenlan doctor or recall tool. Then capture one small durable fact and recall it from another session or client.

If that round trip works, the client is reaching the same Wenlan daemon and source-backed wiki.

Next

Wenlan Agent Profiles and Client Attribution

See which AI client wrote a Wenlan memory, inspect source_agent attribution, and manage trust or enabled state.

Read next