mcp-notes
Manage a personal markdown knowledge base with semantic search, git versioning, wiki links, tags/categories, glossary, and a fact graph.
Create, read, update, and delete notes with UUIDs, YAML frontmatter, tags, and categories.
Search notes with hybrid semantic/keyword queries, filters, listing, and similar-note lookup.
View note git history, restore previous versions, and inspect outgoing, incoming, and broken links.
Manage tags and categories: list, rename, merge, and move/reorganize.
Maintain glossary entries: add, exact lookup, semantic search, list, update, and delete.
Build and query subject-predicate-object facts: add, batch add, update, delete, query, list, semantic search, index, find connections, and get neighbors.
Check fact/source integrity, stale sources, source statistics, and revalidate sources after review.
Run note health checks and force reindexing.
Access static resources for note index, tags, categories, recent notes, orphans, broken links, and parse errors.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-notes search notes about quantum computing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-notes
MCP server for personal knowledge management with semantic search, git versioning, and knowledge graph capabilities.
Supports stateless MCP 2026-07-28 requests and legacy MCP clients from the same stdio server through the official Python SDK v2.
Prerequisites
Python 3.12+
Linux or macOS (uses POSIX file locking via vector-core; not compatible with Windows)
Qdrant vector database (default:
localhost:6333)An OpenAI-compatible embedding API (e.g., llama.cpp, Ollama, or any
/v1/embeddingsendpoint; default:localhost:8080)git (must be on PATH for versioning features)
Related MCP server: mcp-markdown-vault
Installation
Requires vector-core.
pip install git+https://github.com/michaelkrauty/vector-core.git@v1.12.1
pip install git+https://github.com/michaelkrauty/mcp-notes.gitOr clone both repos and install locally:
git clone https://github.com/michaelkrauty/vector-core.git
git clone https://github.com/michaelkrauty/mcp-notes.git
pip install -e vector-core/
pip install -e mcp-notes/Quick Start
# Register with Claude Code:
claude mcp add notes -- mcp-notes
# Or add to your MCP client config (e.g., claude_desktop_config.json):
# {
# "mcpServers": {
# "notes": {
# "command": "mcp-notes",
# "env": {
# "VECTOR_QDRANT_URL": "http://localhost:6333",
# "VECTOR_EMBEDDING_URL": "http://localhost:8080",
# "VECTOR_EMBEDDING_MODEL": "your-model-name"
# }
# }
# }
# }Features
Note Management: CRUD operations on markdown notes with YAML frontmatter
Semantic Search: Hybrid dense + sparse vector search via Qdrant
Git Versioning: Automatic commits on changes, full history with
--followWiki Linking:
[[uuid]]syntax for inter-note references with backlink trackingTags & Categories: Flexible organization with tag management tools
Glossary: Shared term definitions with aliases and domains
Fact Graph: Subject-predicate-object triples with source tracking
Tools (38 total)
Notes (4)
Tool | Description |
| Create note with auto-generated UUID |
| Read note by UUID |
| Update title, content, tags, or category |
| Delete note (keeps git history) |
Search (3)
Tool | Description |
| Hybrid semantic + keyword search with filters |
| List notes with tag/category filters |
| Find semantically similar notes |
Versioning (2)
Tool | Description |
| Git commit history for a note |
| Restore note to previous commit |
Links (1)
Tool | Description |
| Outgoing, incoming (backlinks), and broken links |
Tags (3)
Tool | Description |
| All tags with note counts |
| Rename tag across all notes |
| Merge multiple tags into one |
Categories (2)
Tool | Description |
| Category hierarchy with counts |
| Move/rename a category |
Glossary (6)
Tool | Description |
| Add term with expansion, definition, domain |
| Exact lookup by term or alias |
| Semantic glossary search |
| List entries with optional domain filter |
| Modify entry metadata |
| Delete entry |
Facts (11)
Tool | Description |
| Add SPO triple with source tracking |
| Batch import facts |
| Update fact metadata |
| Delete fact and sources |
| Query by subject/predicate/object |
| All facts involving an entity |
| List fact summaries |
| Semantic fact search |
| Index facts for search |
| BFS graph traversal between entities |
| Immediate entity connections |
Integrity (4)
Tool | Description |
| Facts with deleted/modified sources |
| Source integrity stats |
| Check specific fact's sources |
| Reset sources after verification |
Health (2)
Tool | Description |
| Force full reindex |
| Validate note structure, find errors |
Data Model
Note
---
id: {uuid}
title: Note Title
created: 2024-01-01T00:00:00Z
modified: 2024-01-05T12:00:00Z
tags: [tag1, tag2]
links: [linked-uuid]
---
Markdown content with [[uuid]] links.Fact (SPO Triple)
subject: "Ada Lovelace" (type: person)
predicate: "works_at"
object: "Babbage Labs" (type: organization)
context: "as lead engineer"
confidence: 1.0
valid_from/to: date range
sources: [{type: note, id: uuid, location: "paragraph 3"}]Storage
Data | Location |
Notes |
|
UUID index |
|
Vectors | Qdrant collection |
Git repo |
|
Facts & glossary |
|
NOTES_DIR (default ~/notes) is the base directory. Actual note files live in the notes/ subdirectory within it. The base directory also contains .index/, .git/, and .locks/.
Notes stored as {slug}-{uuid}.md organized by category subdirectories.
Configuration
Variable | Default | Description |
|
| Notes storage directory |
|
| Enable git versioning |
|
| Git commit author |
|
| Git commit email |
|
| Auto-index on startup |
|
| Qdrant collection prefix |
Plus inherited vector-core settings (VECTOR_QDRANT_URL, VECTOR_EMBEDDING_URL, etc.).
Changing embedding models
Update the vector-core embedding configuration and restart the client. The first search or write automatically builds a compatible physical collection, including notes, chunks, glossary entries, facts, and other retained content in a shared collection. This also works with NOTES_AUTO_INDEX=false. There is no separate destructive reindex step.
Model, resolved dimension, deployment namespace, and input formatting are part of the embedding identity. Change the deployment namespace whenever an unchanged model alias points to different weights. Reads and writes use a fixed physical generation; an older client that has been superseded must restart before further operations. Stop legacy server versions before changing configuration because those versions do not participate in migration locking.
The original collection is retained. Failed builds remain inactive, and retrying creates a fresh candidate. New records preserve complete embedding input. Retained inputs larger than the configured model capacity use independently searchable fragments rather than truncation or averaged vectors. Legacy records require sufficient retained text or readable original source; missing source and historically truncated payloads can prevent complete reconstruction and must be surfaced. When local source changes are detected, complete note/chunk groups are refreshed without changing unrelated record types. Their vocabulary contribution is reconciled by the next normal full indexing pass. Missing files or unavailable source directories never imply deletion during migration: complete retained groups survive, while legacy metadata-only summaries without a reconstructable body fail explicitly.
Note-level semantic search ranks complete passage matches and returns distinct notes. Similar-note lookup compares all indexed source passages and uses the best passage-pair score, excluding the source note before retrieval. The short note summary is auxiliary; it does not limit body coverage. Chunk text retains exact body spans, including oversized paragraphs and header-only sections, and highlights use full retained searchable text. Limits include repeated metadata and model role formatting. Metadata that cannot fit as repeated context produces an explicit error rather than being silently shortened.
Explicit fact and glossary searches return distinct entities. Default note/chunk and mixed all-types searches return distinct original source records, grouping their fragments while preserving markerless legacy matches. Winning fact and glossary fragments use lineage-validated canonical display fields and keep highlights from the matching snippet. Similar-note queries use bounded concurrency without limiting source coverage; a failed batch is canceled and joined before the error propagates.
For exact tokenizer-based input limits, install the optional extra with uv sync --extra tokenizer or pip install 'mcp-notes[tokenizer]', then configure vector-core's tokenizer and token limit. Without that extra, vector-core uses its conservative fallback limit. Query and document formatting is handled by the embedding client; callers should provide ordinary, unprefixed text.
Search Query Syntax
# Filter by tag
tag:project-x
# Exclude a tag
-tag:archived
# Filter by category (exact match)
category:work/projects
# Date filters
after:2024-01-01
before:2024-06-30
# Title search
title:meeting notes
# Combined
project tag:active category:work after:2024-01-01MCP Resources
Static data endpoints:
notes://index- Full note indexnotes://tags- All tags with countsnotes://categories- Category hierarchynotes://recent- Last 20 modified notesnotes://orphans- Notes with no backlinksnotes://broken-links- Broken reference summarynotes://parse-errors- Notes that failed to parse
Dependencies
Requires vector-core components:
EmbeddingClient, GlobalVocabulary (search)
QdrantStorage (storage)
GlossaryStore, FactStore (knowledge graph)
External libraries:
GitPython (versioning)
Available Tools
38 toolsadd_factA
Add a new fact (subject-predicate-object triple).
Args: subject: Subject entity name (e.g., "John Smith") predicate: Relationship type (e.g., "works_at", "served_in") object: Object entity name (e.g., "Acme Corp") subject_type: Type of subject (e.g., "person", "organization") object_type: Type of object (e.g., "organization", "military_unit") context: Optional context description (e.g., "as squad leader") confidence: Confidence level 0.0-1.0 (1.0 = verified/manual) valid_from: Start date of validity (ISO format: YYYY-MM-DD) valid_to: End date of validity (ISO format: YYYY-MM-DD) source_type: Source type ("note", "document", "glossary", "manual") source_id: Source UUID (for notes/glossary) source_path: Source path (for documents) source_hash: Content hash (for documents) source_location: Location within source (e.g., "page 3")
Returns: Created fact as dict
Inputs: object (required), subject (required), predicate (required), context, +10 more.
add_facts_batchA
Add multiple facts, committing each newly created fact independently.
Args: facts: List of fact dicts, each with same fields as add_fact: - subject, predicate, object (required) - subject_type, object_type, context, confidence, valid_from, valid_to - source_type, source_id, source_path, source_hash, source_location
Returns: Summary dict with added count, duplicates count, and any errors
Inputs: facts (required).
add_glossary_entryA
Add a new glossary entry.
Args: term: Canonical term (e.g., "USAF") expansion: Full expansion (e.g., "United States Air Force") definition: Detailed definition domain: Optional category (e.g., "military", "tech", "finance") aliases: Optional alternative terms that point to this entry
Returns: Created entry as dict, or error dict for blank/duplicate input
Inputs: term (required), expansion (required), definition (required), domain, +1 more.
check_fact_integrityB
Check integrity of a specific fact's sources.
Returns breakdown of source statuses for the fact.
Args: fact_id: Fact UUID string
Returns: IntegrityCheckResult with source status breakdown
Inputs: fact_id (required).
check_note_healthA
Check health of all notes, reporting parse errors and issues.
Returns: Health report with total notes, parse errors, and recommendations
Inputs: no named parameters.
create_noteA
Create a new note with auto-generated UUID.
Args: title: Note title content: Note body content (markdown) tags: Optional list of tags (lowercase, hyphenated) category: Optional category path (e.g., "work/projects")
Returns: Created note as dict
Inputs: title (required), content (required), tags, category.
delete_factA
Delete a fact and its sources.
Args: fact_id: Fact UUID string
Returns: Success status
Inputs: fact_id (required).
delete_glossary_entryB
Delete a glossary entry by term or UUID.
Args: term_or_id: Term (case-insensitive) or UUID string
Returns: Success status or error
Inputs: term_or_id (required).
delete_noteA
Delete a note. The note is removed from the filesystem and search index, but remains recoverable from git history.
Args: note_id: Note UUID string
Returns: Success status
Inputs: note_id (required).
find_connectionsA
Find connections between entities using BFS graph traversal.
Discovers how entities are related through chains of facts.
Args: source_entity: Starting entity name target_entity: Target entity to find path to (optional) If None, returns all reachable entities up to max_depth source_type: Type of source entity (optional, for disambiguation) target_type: Type of target entity (optional, for disambiguation) max_depth: Maximum path length (1-10, default 3) limit: Maximum paths to return (1-100, default 10)
Returns: List of connection paths, each containing: - path: List of facts connecting the entities - entities: List of entity names in the path
Inputs: source_entity (required), limit, max_depth, source_type, +2 more. Returns: result
find_similar_notesB
Find notes semantically similar to the given note.
Args: note_id: Source note UUID string limit: Max results (default 5, max 100)
Returns: List of similar notes
Inputs: note_id (required), limit. Returns: result
get_entityA
Get all facts involving an entity (as subject or object).
Args: name: Entity name (case-insensitive) entity_type: Optional entity type filter
Returns: Dict with entity info and related facts
Inputs: name (required), entity_type.
get_facts_with_stale_sourcesA
Get facts with stale (deleted or modified) sources.
Useful for identifying facts that may need review or re-verification.
Args: status: Filter by source status: "deleted", "modified", or "all" (default) limit: Max results (default 50, max 100)
Returns: List of facts with stale sources, or a single-item list with an error dict if status is not one of the supported values.
Inputs: limit, status. Returns: result
get_neighborsA
Get immediate neighbors of an entity in the fact graph.
Returns all entities directly connected by a single fact.
Args: entity: Entity name to get neighbors for entity_type: Type filter (optional, for disambiguation)
Returns: List of neighbors with: - entity: Neighbor entity name - type: Neighbor entity type - predicate: Relationship predicate - direction: 'outgoing' (entity is subject) or 'incoming' (entity is object) - fact_id: UUID of connecting fact
Inputs: entity (required), entity_type. Returns: result
get_note_historyA
Get version history for a note from git.
Uses --follow to track history across file moves/renames.
Args: note_id: Note UUID string limit: Max versions to return (default 10, max 100)
Returns: List of version info
Inputs: note_id (required), limit. Returns: result
get_note_linksA
Get incoming and outgoing links for a note.
Args: note_id: Note UUID string
Returns: NoteLinks with outgoing, incoming (backlinks), and broken links
Inputs: note_id (required).
get_source_statisticsB
Get statistics about fact source integrity.
Returns counts of sources by status across all facts.
Returns: Dict with source counts by status and integrity score
Inputs: no named parameters.
index_factsA
Index all facts for semantic search.
Args: force: If True, reindex all facts. If False, only index new facts.
Returns: Indexing result with counts
Inputs: force.
list_categoriesA
List all categories with note counts and hierarchy.
Returns: Category tree
Inputs: no named parameters.
list_factsB
List facts as lightweight summaries.
Args: limit: Maximum results (1-100, default 50) subject_type: Filter by subject type object_type: Filter by object type predicate: Filter by predicate
Returns: List of fact summaries
Inputs: limit, predicate, object_type, subject_type. Returns: result
list_glossaryA
List all glossary entries with optional domain filter.
Args: domain: Optional domain filter limit: Max results (default 50, max 100)
Returns: List of glossary entry summaries
Inputs: limit, domain. Returns: result
list_notesA
List notes with optional filtering.
Args: tags: Filter by tags (all must match) category: Filter by category prefix sort_by: Sort field - "modified" (default), "created", or "title" limit: Max results (default 50, max 100)
Returns: List of note summaries, or a single-item list with an error dict if sort_by is not one of the supported fields.
Inputs: tags, limit, sort_by, category. Returns: result
list_tagsA
List all tags with note counts.
Returns: List of tag info
Inputs: no named parameters. Returns: result
lookup_termA
Exact lookup by term or alias (case-insensitive).
Args: term: Term to look up (e.g., "usaf", "USAF", "US Air Force")
Returns: Glossary entry if found, or error dict
Inputs: term (required).
merge_tagsA
Merge multiple tags into one.
Args: source_tags: Tags to merge from target_tag: Tag to merge into
Returns: Count of notes updated, or error dict if validation fails
Inputs: target_tag (required), source_tags (required).
move_categoryA
Move/rename a category.
Args: old_path: Current category path new_path: New category path
Returns: Count of notes updated
Inputs: new_path (required), old_path (required).
query_factsB
Query facts by various criteria.
Args: subject: Filter by subject (case-insensitive) predicate: Filter by predicate (case-insensitive) object: Filter by object (case-insensitive) subject_type: Filter by subject type object_type: Filter by object type min_confidence: Minimum confidence threshold valid_at: Filter by validity date (ISO format: YYYY-MM-DD) limit: Maximum results (1-100, default 50)
Returns: List of matching facts
Inputs: limit, object, subject, valid_at, +4 more. Returns: result
read_noteA
Read a note by its UUID.
Args: note_id: Note UUID string
Returns: Note as dict
Inputs: note_id (required).
reindex_notesA
Force reindex all notes (useful after manual file edits).
Returns: Index status
Inputs: no named parameters.
rename_tagC
Rename a tag across all notes.
Args: old_tag: Tag to rename new_tag: New tag name
Returns: Count of notes updated, or error dict if validation fails
Inputs: new_tag (required), old_tag (required).
restore_note_versionA
Restore a note to a previous version (creates new commit).
Args: note_id: Note UUID string version_id: Git commit SHA to restore from
Returns: Restored note
Inputs: note_id (required), version_id (required).
revalidate_fact_sourcesA
Reset modified/deleted sources back to active after re-verification.
Use this after manually verifying that sources are still valid.
Args: source_id: Optional source UUID to revalidate (e.g., a note or glossary entry UUID) source_type: Optional source type filter ("note", "glossary", "document")
Returns: Count of sources revalidated
Inputs: source_id, source_type.
search_factsA
Semantic search across indexed facts.
Args: query: Natural language search query limit: Maximum results (1-100, default 10)
Returns: List of matching facts with scores
Inputs: query (required), limit. Returns: result
search_glossaryA
Semantic search for glossary entries.
Args: query: Natural language search query domain: Optional domain filter limit: Max results (default 10, max 100)
Returns: List of matching entries with relevance scores, or error dict
Inputs: query (required), limit, domain. Returns: result
search_notesA
Hybrid semantic + keyword search across all notes.
Query syntax supports filters:
tag:tagname - Filter by tag
category:path - Filter by category
after:YYYY-MM-DD - Created after date
before:YYYY-MM-DD - Created before date
title:text - Title contains text
Args: query: Search query with optional filters limit: Max results (default 10, max 100) tags: Additional tag filters category: Additional category filter after: Created after date (ISO format) before: Created before date (ISO format)
Returns: List of search results
Inputs: query (required), tags, after, limit, +2 more. Returns: result
update_factA
Update an existing fact's metadata.
Note: Subject, predicate, and object are immutable (delete and recreate if needed).
Args: fact_id: Fact UUID string context: New context description (omit or null leaves it unchanged; pass an empty string "" to set it blank) confidence: New confidence level 0.0-1.0 valid_from: New start date in ISO format (omit or null leaves it unchanged; pass an empty string "" to clear it) valid_to: New end date in ISO format (omit or null leaves it unchanged; pass an empty string "" to clear it)
Returns: Updated fact as dict
Inputs: fact_id (required), context, valid_to, confidence, +1 more.
update_glossary_entryA
Update an existing glossary entry. Only provided fields are updated.
Args: term_or_id: Term (case-insensitive) or UUID to identify the entry term: New canonical term (optional) expansion: New expansion (optional) definition: New definition (optional) domain: New domain (optional, pass "" or null to clear) aliases: New aliases (optional, pass [] to clear)
Returns: Updated entry as dict
Inputs: term_or_id (required), term, domain, aliases, +2 more.
update_noteA
Update an existing note. Only provided fields are updated.
Args: note_id: Note UUID string title: New title (optional, may cause file rename) content: New body content (optional) tags: New tags (optional, pass empty list to clear) category: New category (optional, may cause file move, pass empty string to clear)
Returns: Updated note as dict
Inputs: note_id (required), tags, title, content, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Tool purposes are largely distinct and grouped by domain (notes, facts, glossary), with clear CRUD/search/maintenance roles. The only mild ambiguity is among fact retrieval options (query_facts/list_facts/search_facts) and the several fact-source integrity helpers, though their descriptions are specific enough for careful agents.
Names consistently use snake_case verb-first patterns (create_note, delete_fact, merge_tags, search_glossary). Minor deviations like add_facts_batch, lookup_term, and get_facts_with_stale_sources slightly break the otherwise predictable verb_noun rhythm, and retrieval verbs (list/query/search/find) are not perfectly standardized.
38 tools is well above the heavy threshold and will impose a real selection burden on agents. While the breadth reflects three subdomains plus maintenance features, several clusters (source-integrity tools, index/reindex tools, graph traversal) could be consolidated without losing core capability.
Notes, facts, and glossary all have full lifecycle coverage, plus search, history/restore, graph traversal, and integrity checks. Minor gaps exist—no explicit tag/category deletion, no direct source-record editing—but agents can work around them through update_note and revalidate/source tools.
Maintenance
Related MCP Connectors
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Personal memory layer: files, notes, messages, tasks and email, semantically indexed.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA local note-taking server that provides intelligent management of markdown files through hybrid keyword and AI-powered semantic search. It enables users to create, find, and retrieve notes using advanced indexing, vector embeddings, and a built-in web viewer.MIT
- AlicenseBqualityCmaintenanceHeadless semantic MCP server for Obsidian, Logseq, Dendron, Foam, and any markdown folder. Features built-in hybrid semantic search, surgical AST editing, template scaffolding, zero-config local embeddings, and workflow tracking.5109 npm12MIT
- AlicenseAqualityCmaintenanceProvides semantic search and a tag-based knowledge graph for any project, auto-discovering local markdown knowledge bases with YAML frontmatter.1014 npmMIT
- FlicenseCqualityDmaintenanceGit-backed MCP server for creating and maintaining an Obsidian-style markdown knowledge base with full CRUD, search, and git sync.7-