# WeFlow CLI MCP server

> Enables AI clients to query WeChat chat history, export messages, manage official account digests, and build a local semantic knowledge base via MCP.

- Repository: https://github.com/zhuobichen/weflow-cli
- Page: https://hostedmcp.org/servers/zhuobichen/weflow-cli
- Transport: stdio
- Stars: 164
- License: MIT

## Install

### Claude Code

```sh
claude mcp add weflow-cli -- npx -y weflow-cli
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "weflow-cli": {
      "command": "npx",
      "args": [
        "-y",
        "weflow-cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "weflow-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "weflow-cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"weflow-cli","type":"stdio","command":"npx","args":["-y","weflow-cli"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "weflow-cli": {
      "command": "npx",
      "args": [
        "-y",
        "weflow-cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add weflow-cli -- npx -y weflow-cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.weflow-cli]
command = "npx"
args = ["-y", "weflow-cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user weflow-cli npx -- -y weflow-cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "weflow-cli": {
      "command": "npx",
      "args": [
        "-y",
        "weflow-cli"
      ]
    }
  }
}
```

## FAQ

### How do I connect it to an AI editor like Claude Code?

You can generate an MCP configuration file by running `weflow-cli mcp-config` and placing the output into your MCP client's configuration directory.
