MCP Index Notes
Enables indexing and retrieving notes with full-text search using SQLite, plus building knowledge graphs to find relationships between concepts. Supports natural language note management, tagging, and semantic connections.
README
Quick Tip: Copy-Paste Text and Images
You can simply copy and paste text or images into your favorite chat client (like Copilot or Anthropic) and say something like:
Add all this to my notes
The LLM will index the information as it decides, using its own context and capabilities. This makes it easy to capture and organize information without manual formatting or tool calls.
MCP Index Notes
A simple, fast MCP server to index and retrieve notes using SQLite (FTS5) with optional JSON backups. Written in TypeScript with verbose logging.
Features
- Fast local storage using better-sqlite3
- Full-text search (FTS5) across content, key, tags, metadata
- Upsert by id or insert by key
- Query by key or text
- Delete by id or key
- Backup to JSON and restore
- Structured, verbose logging via pino
Tools
- index-upsert: Create/update a note
- index-query: Query by key or full-text search
- index-delete: Delete by id or key
- index-backup: Export all notes to JSON
- index-restore: Import notes from JSON
- index-list-keys: Return keys with counts
- index-health: Health check
Graph tools:
- graph-node-upsert: Create/update a graph node
- graph-neighbors: Get neighbors of a node
- graph-path: Find a path between nodes
- graph-import-from-notes: Build graph from existing notes (note->key, note->tags)
- graph-stats: Node/edge counts
Quick start
- Install deps
npm install
- Dev run (stdio MCP server)
npm run dev
- Smoke test (local DB only)
npm run smoke
Environment vars:
- DB_PATH: path for SQLite db (default ./data/notes.db)
- LOG_LEVEL: pino level (trace|debug|info|warn|error)
- LOG_PRETTY: true for human-readable logs
Integrations
Below are ready-to-copy examples for popular MCP hosts and clients. Replace paths with your local ones on Windows. All examples run this server via Node and pass optional env vars.
Tip: Build once so the dist entry exists.
npm run build
GitHub Copilot Chat (VS Code)
Copilot Chat supports MCP servers. Add a new MCP server entry pointing to your built script.
- Open VS Code Settings (JSON) and add an MCP server entry under the Copilot MCP section (exact setting label may vary by version). Use this structure:
{
"mcpServers": {
"notes-index": {
"command": "node",
"args": [
"C:\\projects\\mcp-index-notes\\dist\\mcp.js"
],
"env": {
"DB_PATH": "C:\\projects\\mcp-index-notes\\data\\notes.db",
"LOG_LEVEL": "info",
"LOG_PRETTY": "true"
}
}
}
}
Then in Copilot Chat, ask it to call a tool, e.g.: “Call tool index-health”. You should see { "ok": true } in the result.
Claude Desktop
Add to Claude Desktop’s settings.json (Help → Open config file). Example:
{
"mcpServers": {
"notes-index": {
"command": "node",
"args": [
"C:\\projects\\mcp-index-notes\\dist\\mcp.js"
],
"env": {
"DB_PATH": "C:\\projects\\mcp-index-notes\\data\\notes.db",
"LOG_LEVEL": "info",
"LOG_PRETTY": "true"
}
}
}
}
Cursor
Create or edit ~/.cursor/mcp.json:
{
"mcpServers": {
"notes-index": {
"command": "node",
"args": [
"C:\\projects\\mcp-index-notes\\dist\\mcp.js"
],
"env": {
"DB_PATH": "C:\\projects\\mcp-index-notes\\data\\notes.db",
"LOG_LEVEL": "info",
"LOG_PRETTY": "true"
}
}
}
}
Continue.dev
Add to ~/.continue/config.json under mcpServers (structure may vary by version):
{
"mcpServers": [
{
"name": "notes-index",
"command": "node",
"args": [
"C:\\projects\\mcp-index-notes\\dist\\mcp.js"
],
"env": {
"DB_PATH": "C:\\projects\\mcp-index-notes\\data\\notes.db",
"LOG_LEVEL": "info",
"LOG_PRETTY": "true"
}
}
]
}
Verify the connection
Prompt Examples (How to use MCP tools in chat)
Advanced LLM Prompts
You can leverage advanced LLMs to interact with MCP tools for more intelligent workflows. Here are some example prompts:
Semantic Search
Call tool index-query with { text: "Find all notes about database security" }
Expected result: Returns notes relevant to database security using full-text search.
Summarize Notes
Summarize the content of all notes tagged "meeting" using index-query and LLM summarization.
Expected workflow: The client calls index-query with { tags: "meeting" }, then uses the LLM to summarize the returned notes.
Generate Knowledge Graph
Build a graph of all notes related to "AI" and show connections between their tags using graph-import-from-notes and graph-stats.
Expected workflow: The client calls graph-import-from-notes and graph-stats to visualize relationships between notes and tags.
Find Shortest Path Between Concepts
Find the shortest path in the knowledge graph between "SQL" and "Security" using graph-path.
Expected result: Returns the path of related notes/tags between the two concepts.
Context-Aware Upsert
Add a new note about "PostgreSQL performance tuning" and link it to existing notes about "SQL" and "optimization" using index-upsert and graph-node-upsert.
Expected workflow: The client upserts the note and updates the graph to connect related concepts.
Multi-step Reasoning
Query all notes about "API design", summarize them, and suggest improvements using index-query and LLM reasoning.
Expected workflow: The client queries notes, summarizes with LLM, and generates actionable suggestions.
You can interact with the MCP server using natural language prompts in your chat client. Here are some example prompts:
Health Check
Call tool index-health
Expected result: { "ok": true }
Add a Note
Call tool index-upsert with { key: "sql.connection", content: "Server=localhost;User=admin;" }
Expected result: { "id": ... }
Query a Note by Key
Call tool index-query with { key: "sql.connection" }
Expected result: Returns stored entries for that key
Full-Text Search
Call tool index-query with { text: "connection" }
Expected result: Returns notes containing the word "connection"
List All Keys
Call tool index-list-keys
Expected result: List of all note keys with counts
Delete a Note
Call tool index-delete with { key: "sql.connection" }
Expected result: Confirmation of deletion
Backup Notes to JSON
Call tool index-backup
Expected result: JSON export of all notes
Restore Notes from JSON
Call tool index-restore with { path: "C:/path/to/backup.json" }
Expected result: Notes imported from backup
Graph Tools
Call tool graph-node-upsert with { id: "node1", label: "Start" }
Call tool graph-neighbors with { id: "node1" }
Call tool graph-path with { from: "node1", to: "node2" }
Expected result: Graph operations as described
If your client shows a tools list, you should see all tools from this server.
JSON backup format
{
"generatedAt": "2025-08-25T12:00:00.000Z",
"notes": [ { id, key, content, tags, metadata, created_at, updated_at } ]
}
Notes
- The MCP server communicates via stdio. Integrate with your LLM runtime that supports MCP.
- The DB uses WAL mode for concurrency and performance.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。