Skip to main content
Glama
nadimhoss

mcp-notes-server

by nadimhoss

mcp-notes-server

An MCP server that gives an AI agent a searchable markdown notes vault: six tools over a flat directory of .md files with YAML-style frontmatter.

Notes stay plain markdown on disk. Nothing is locked in a database, so the same files work with your editor, grep, and git.

~/notes/
├── pad-thai.md
├── sourdough-starter.md
└── weekly-review.md

Tools

Tool

Description

create_note

Create a note. Returns the generated slug.

read_note

Read one note in full, by slug.

list_notes

Summaries (no bodies), newest first, optionally filtered by tag.

search_notes

Ranked full-text search with snippets.

update_note

Patch title / body / tags. The slug never changes.

delete_note

Delete a note by slug.

Related MCP server: Memory MCP Server

Install

npm install
npm run build

Use it with an MCP client

Add it to your client's server config — for Claude Desktop, claude_desktop_config.json:

{
  "mcpServers": {
    "notes": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-notes-server/dist/src/index.js", "--vault", "/absolute/path/to/notes"]
    }
  }
}

The vault directory is resolved in this order: --vault <dir>, then $NOTES_VAULT, then ~/notes. It is created on startup if it does not exist.

Design notes

Slugs are the identity, and they are validated. A note lives at <vault>/<slug>.md, and every slug is checked against /^[a-z0-9]+(?:-[a-z0-9]+)*$/ before it reaches the filesystem. That is what makes read_note({slug: "../../.ssh/id_rsa"}) impossible rather than merely unlikely — an allowlist, not an escaping pass. Slugs are also stable across updates: renaming the file when the title changes would invalidate any slug the model is still holding from an earlier tool call.

Tool errors are data, not exceptions. "No note with slug X" comes back as a normal tool result with isError: true, so the model reads it and corrects itself. If it were thrown, the client would see a protocol error, which the model cannot recover from. Genuine bugs (anything that is not a VaultError) are still thrown, so they stay loud.

Search is weighted term frequency. A term in the title counts triple and a term in a tag counts double, so searching sourdough ranks a note about sourdough above one that mentions it in passing. It is deliberately simple — no index to keep in sync, and a vault of a few thousand notes scans in milliseconds.

The vault knows nothing about MCP. src/vault.ts is plain filesystem code, src/server.ts is the MCP binding, and src/index.ts is the stdio entry point. That split is why the vault can be tested directly and the server can be tested through a real MCP client over an in-memory transport, with no subprocess and no mocks.

Development

npm test          # 46 tests, vitest
npm run typecheck # tsc --noEmit
npm run build     # emit to dist/

Tests cover the vault directly (test/vault.test.ts) and the server end to end through a real MCP Client over InMemoryTransport (test/server.test.ts), so tool schemas, argument validation, and result shapes are all exercised — not just the logic behind them.

License

MIT

Available Tools

6 tools
create_noteCreate noteA

Create a new markdown note. Returns the generated slug, which is the identifier every other tool takes. Slugs are derived from the title and de-duplicated automatically.

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyYesMarkdown body of the note.
tagsNoLowercase topic tags used for filtering, e.g. ['recipes', 'thai'].
titleYesHuman-readable title for the note.

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false and idempotentHint=false, so the description carries the burden of explaining side effects. It discloses that a slug is generated, derived from the titlehol and de-duplicated automatically, which is beyond what annotations convey. It doesn't mention auth or rate limits, but for this simple create tool that's acceptable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero fluff. The key facts (creates note, returns slug, slug derivation) are all present and front-loaded. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a two-parameter create tool. It explains the return value (slug), its role with other tools, and the de-duplication behavior. No output schema exists, so the description carries that burden, and it does so well. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (body, title), so baseline is 3. The description adds value by explaining the relationship: slug derived from title and de-duplicated automatically. This clarifies the title parameter's role beyond its schema description. Body is straightforward.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (create) on the resource (markdown note) and immediately explains the key return value (slug). It distinguishes this tool from siblings (update, delete, search, read) by focusing on creation and the slug as the identifier for other tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this is the creation tool and explains the slug's role as the identifier that other tools use (read, update, delete). It doesn't explicitly list alternatives or exclusion criteria, but the purpose is unmistakable from the name and description, so this is firmly a 4.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

delete_noteDelete noteA
DestructiveIdempotent

Permanently delete a note by slug. This cannot be undone.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesSlug of the note to delete.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already include destructiveHint=true and readOnlyHint=false, and the description adds meaningful behavioral context with 'Permanently delete' and 'This cannot be undone.' It does not contradict the annotations, though it could go further by noting behavior for nonexistent slugs or permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler. The key fact—permanent deletion—is front-loaded, and irreversibility is stated immediately. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter destructive operation with annotations already signaling destructive and read-only characteristics, the description is complete enough. The agent knows what happens, what identifier is required, and the irreversible consequence.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the parameter slug is already described in the schema. The description only restates 'by slug' without adding additional meaning or format details, so it stays at the baseline for a fully documented schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('delete'), a specific resource ('note'), and the exact key ('by slug'). This clearly distinguishes it from siblings like create_note, read_note, update_note, and list_notes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given about when to use this tool versus alternatives, such as update_note for modifying a note or search_notes for finding one. The description only implies destruction but provides no exclusions, prerequisites, or alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_notesList notesA
Read-only

List note summaries (no bodies), most recently updated first. Use this to get your bearings before reading or searching.

ParametersJSON Schema
NameRequiredDescriptionDefault
tagNoOnly return notes carrying this tag.
limitNoMax notes to return.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint=true already covering the safety profile, the description adds value by disclosing that responses contain only summaries (no bodies) and are sorted by recency. This is concrete behavioral context beyond the annotation; it does not describe pagination or the contents of a summary, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no redundancy: the first packs the operation, output scope, and sort order; the second adds a single piece of usage guidance. Every clause earns its place, and key facts are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter list tool with a read-only annotation, the description covers the core invocation needs: what is returned (summaries), what is excluded (bodies), and ordering. The only gap is that 'summaries' is not defined (e.g., which fields appear), and there is no output schema to compensate, so it is not a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: both 'tag' and 'limit' have clear inline descriptions, so the schema carries the parameter documentation. The tool description itself adds no parameter-level meaning, matching the baseline of 3 for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear verb ('list'), resource ('notes'), and immediately scopes the result to 'summaries (no bodies)', which differentiates it from read_note and search_notes. It also pins the ordering to 'most recently updated first', leaving no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this to get your bearings before reading or searching' explicitly frames when to call it, positioning it as the orientation step ahead of content retrieval and search. It implies but does not explicitly name the sibling alternatives (read_note for full bodies, search_notes for search), so it stops short of a full when-not/alternatives breakdown.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

read_noteRead noteA
Read-only

Read a single note in full, by slug.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesSlug of the note, e.g. 'pad-thai'.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, so the description doesn't need to state that it's a read operation. The description adds that it reads 'in full' and uses a slug, which is useful but minimal. No side effects or limitations are mentioned, but the read-only nature is already covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence conveys exactly what the tool does without any filler. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read operation with one parameter and readOnlyHint annotation, this is nearly complete. The description tells the agent the key input and outcome. Lack of an output schema is acceptable because 'in full' implies the entire note. Minor gaps like error handling or not-found behavior are not critical for a straightforward read.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a clear description of the slug parameter. The description merely reiterates 'by slug', adding no new semantic detail beyond the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb (read), the resource (a single note), and the scope (in full, by slug). It distinguishes itself from siblings like list_notes (multiple notes) and search_notes (query-based) by specifying 'single note' and the unique identifier 'slug'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: use this tool when you have a slug and want the entire note. However, it does not explicitly mention when not to use it (e.g., for listing or searching) or name alternatives, so it lacks exclusions. Still, the intended use is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_notesSearch notesA
Read-only

Full-text search over titles, tags, and bodies. Returns ranked hits with a snippet; matches in the title or tags outrank matches in the body.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMax hits to return.
queryYesSearch terms, whitespace separated.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotation readOnlyHint already indicates read-only behavior. The description adds valuable details about return format (ranked hits with snippets) and ranking rules (title/tag matches outrank body matches), enhancing transparency beyond the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no redundancy. Each phrase contributes meaning (search scope, return type, ranking rule), achieving high information density without clutter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Combined with the schema and annotation, the description covers purpose, return behavior, and ranking logic. An agent has sufficient information to invoke the tool correctly, including expected output format and ranking priority.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides descriptions for both parameters ('query' and 'limit'). The tool description does not add parameter-specific semantics beyond what is already documented, so it only meets the baseline for a fully covered schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb ('search'), resource ('notes'), and scope ('over titles, tags, and bodies'). It distinguishes from sibling tools like list_notes by emphasizing full-text search and ranking, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool (for content-based search) but does not explicitly contrast with alternatives (e.g., 'use list_notes to retrieve all notes'). It is clear enough for an agent to infer the appropriate scenario, though explicit guidance would be stronger.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

update_noteUpdate noteA
DestructiveIdempotent

Replace the title, body, and/or tags of an existing note. Omitted fields are left untouched. The slug never changes.

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyNoNew markdown body, replacing the old one.
slugYesSlug of the note to update.
tagsNoNew tag list, replacing the old one.
titleNoNew title.

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate the operation is destructive and not read-only, and the description reinforces this by saying fields are 'replaced.' It adds valuable behavioral detail beyond the annotations: omitted fields are left untouched and the slug never changes, which clarifies partial-update semantics and identity stability.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, no filler. The first sentence states the operation and scope, the second clarifies the partial-update behavior, and the third removes a common concern about identifier changes. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 4-parameter mutation tool with full schema coverage and no output schema, the description covers the essential behavioral contract: what can be changed, what is preserved, and what remains stable. Nothing critical is missing for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by grouping 'title, body, and/or tags' as optional replacement fields and specifying that the slug is immutable. This helps an agent understand that omitting a field means preserving its current value, which the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Replace') with a clear resource ('an existing note') and names the exact fields that change: title, body, and/or tags. It is instantly distinguishable from the sibling tools create_note, read_note, list_notes, search_notes, and delete_note.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly situates the tool as a mutation of an existing note, which implicitly excludes creation, reading, listing, searching, and deletion. It does not explicitly name alternatives or state when not to use it, but the context is clear enough for agent selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updatesv0.1.0
    • First observedcreate_note
    • First observeddelete_note
    • First observedlist_notes
    • First observedread_note
    • First observedsearch_notes
    • First observedupdate_note

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a distinct purpose: create, read, list, search, update, and delete notes. No two tools overlap in functionality, and the descriptions clearly differentiate them.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (create_note, read_note, list_notes, search_notes, update_note, delete_note), making the API predictable and easy to navigate.

Tool Count5/5

With 6 tools covering the full CRUD lifecycle plus listing and search, the set is well-scoped for a notes server. No redundant or missing tools; each earns its place.

Completeness5/5

The tool surface provides complete coverage for note management: create, read, list, search, update, and delete. There are no obvious dead ends or missing operations for the intended domain.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to manage a personal markdown-based knowledge base with natural language interactions. Supports creating, searching, updating, and organizing notes across categories like people, recipes, meetings, and procedures.
    11
    1
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides tools for AI agents to manage long-term memories, daily notes, and TODO lists through a structured markdown file system. It enables context awareness by allowing agents to read, write, and search entries for persistent information storage.
    12
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to search, read, create, update, and remove personal markdown notes stored locally, providing persistent memory across sessions.
    95
    2
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nadimhoss/mcp-notes-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server