Skip to main content
Glama
textview-mcp

textview-mcp

by mrliuzhiyu

textview-mcp


textview-mcp is an MCP server that connects AI assistants (Claude, Cursor, Windsurf, etc.) to TextView — a cloud-based note-taking platform designed for AI agents.

Think of it as persistent memory for your AI: meeting notes, research findings, code snippets, daily journals — anything your AI generates can be saved, searched, and retrieved across sessions.

Why?

AI conversations are ephemeral. You have a great brainstorming session with Claude, close the window, and it's gone. textview-mcp solves this:

  • AI writes, you review — Let your AI agent save documents directly. Review them later on textview.cn from any device.

  • Cross-session memory — Claude in one conversation can read what Claude in another conversation wrote.

  • Cross-tool sync — Save from Cursor, read from Claude Desktop, review on your phone.

  • Rich formatting — Documents are stored as rich text (HTML), not plain text.

Related MCP server: simple-memory-mcp

Quick Start

1. Get your API token

Sign up at textview.cn, click your avatar → API Token → Generate.

2. Configure your AI tool

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "textview": {
      "command": "npx",
      "args": ["-y", "textview-mcp"],
      "env": {
        "TEXTVIEW_TOKEN": "tv_your_token_here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Create or edit .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "textview": {
      "command": "npx",
      "args": ["-y", "textview-mcp"],
      "env": {
        "TEXTVIEW_TOKEN": "tv_your_token_here"
      }
    }
  }
}

Go to Settings → MCP and add:

{
  "mcpServers": {
    "textview": {
      "command": "npx",
      "args": ["-y", "textview-mcp"],
      "env": {
        "TEXTVIEW_TOKEN": "tv_your_token_here"
      }
    }
  }
}
claude mcp add textview -- npx -y textview-mcp

Then set the environment variable TEXTVIEW_TOKEN=tv_your_token_here.

3. Start using it

Just ask your AI naturally:

"Save this conversation as a document called 'Meeting Notes March 11'"

"Show me my recent documents"

"Find my notes about the API redesign"

Tools

Tool

Description

save_document

Save a new document to TextView

list_documents

List documents (with optional search)

get_document

Retrieve a document by ID

update_document

Update an existing document's title or content

Use Cases

Daily Journal

"Save a journal entry for today: summarize what we discussed and the decisions we made."

Research Assistant

"Save this research summary about MCP protocols to my notes."

Code Documentation

"Document the architecture of this project and save it to TextView."

Meeting Notes

"We just finished our sprint planning. Save the action items as a document."

Cross-Session Context

"Check my notes — did we decide on PostgreSQL or MySQL last week?"

Requirements

Environment Variables

Variable

Required

Description

TEXTVIEW_TOKEN

Yes

API token (starts with tv_), generated at textview.cn

How It Works

Your AI Tool (Claude, Cursor, etc.)
    ↕ MCP Protocol (stdio)
textview-mcp (this package)
    ↕ HTTPS
TextView Cloud API
    ↕
Your Documents (accessible from any device)

Development

git clone https://github.com/mrliuzhiyu/textview-mcp.git
cd textview-mcp
npm install
npm run dev

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT


Available Tools

6 tools
get_documentC

获取单个文档的完整内容。

Inputs: id (required).

list_documentsB

列出 TextView 中的文档,按更新时间倒序排列。

Inputs: limit, search.

list_memosC

查询 TextView 记录区的碎片记录,按时间倒序。

Inputs: date, limit, source.

save_documentA

保存新文档到 TextView。content 必须为 HTML 格式(不要用 Markdown)。例: 标题段落列表项

Inputs: title (required), content.

save_memoA

保存一条碎片记录到 TextView 记录区。适用于快速笔记、语音转文字、剪贴板内容等碎片化信息。

Inputs: content (required), source, source_name.

update_documentB

更新已有文档的标题或内容。至少提供 title 或 content 之一。content 必须为 HTML 格式(不要用 Markdown)。

Inputs: id (required), title, content.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Tools are cleanly partitioned into document operations (save/list/get/update) and memo operations (save/list). save vs update is distinguished by creating a new document versus modifying an existing one, and document vs memo is distinguished by structured HTML documents versus fragmented notes. No overlapping purposes are apparent.

    Naming Consistency5/5

    All names use snake_case with a consistent verb_noun structure (save_, list_, get_, update_). The only minor variation is plural nouns for list operations versus singular for single-resource operations, which is conventional and readable.

    Tool Count5/5

    Six tools for a document and memo management server is well-scoped, with each operation serving a distinct purpose. The surface is not bloated or thin for the apparent scope.

    Completeness3/5

    Document lifecycle supports create, read, update, and list but has no delete operation, leaving a dead end for removing documents. Memos only support save and list, with no get/update/delete, so lifecycle coverage is notably incomplete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with persistent memory across sessions using local SQLite and keyword search, allowing storage and retrieval of user preferences, project context, and decisions.
      13 npm
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search, read, create, update, and remove personal markdown notes stored locally, providing persistent memory across sessions.
      16 npm
      2
      MIT