mcp-lab-01-notes-server
Click on "Install 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-lab-01-notes-serverlist my pending tasks"
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-lab-01-notes-server
Nível 01 da trilha MCP Lab: primeiro servidor MCP construído com o SDK oficial (mcp no PyPI). Domínio: um gerenciador de notas e tarefas guardadas como arquivos markdown locais.
Termos técnicos seguem o glossário em ../CONTEXT.md.
O que este Server faz
5 Tools sobre uma pasta de arquivos .md:
Tool | O que faz |
| Cria uma nota; com |
| Lista todas as notas com título e status |
| Devolve o corpo completo de uma nota |
| Marca uma tarefa como concluída |
| Apaga uma nota |
flowchart LR
subgraph server.py [camada de protocolo]
T[Tools do MCPServer]
end
subgraph note.py [domínio]
N[Note, slugify, parse, render]
end
subgraph storage.py [armazenamento]
S[NotesStorage: ler/escrever/apagar .md]
end
T -->|delega| N
T -->|delega| S
N -.->|não conhece| S
S -.->|não conhece| Nserver.py é a única camada que conhece as duas outras. note.py (regra de negócio) e storage.py (arquivos) não se conhecem entre si — isso é proposital: dá pra trocar onde as notas são guardadas (um banco de dados, por exemplo) sem tocar no que é uma Nota.
Related MCP server: Mini Task MCP Server
Como rodar
uv sync
uv run pytest -q # 33 testes
uv run ruff check .
uv run mypyPor padrão as notas vão para ~/.mcp-lab/notes. Pra usar outra pasta:
NOTES_SERVER_DIR=/caminho/qualquer uv run notes-serverUsando de verdade no Claude Code
claude mcp add notes-server -- uv run --directory "$(pwd)" notes-serverDepois disso, numa conversa do Claude Code, peça pra ele criar uma nota ou listar suas tarefas — o modelo vai decidir sozinho quando chamar cada Tool.
Estrutura do código
src/notes_server/
├── storage.py → só sabe ler/escrever/apagar arquivos; barra path traversal
├── note.py → o que é uma Note; slugify; frontmatter -> Note e Note -> frontmatter
└── server.py → liga os Tools do MCP ao domínio; ToolError pros erros esperadosUm .md por camada em docs/, explicando o pra-quê/o-quê/como de cada uma:
O que este nível deliberadamente NÃO faz
Não expõe as notas como Resources nem tem Prompts prontos — isso é o Nível
02-resources-prompts.Não valida concorrência (dois processos escrevendo a mesma nota ao mesmo tempo) — fora de escopo pra um projeto local de estudo.
O frontmatter é um parser feito à mão, de propósito (ver
docs/02-dominio-nota.md) — não é um formato geral de YAML.
Referência oficial
modelcontextprotocol.io para a spec do protocolo. github.com/modelcontextprotocol/python-sdk para o código-fonte do SDK — o pacote mcp mudou de FastMCP para MCPServer na versão 2.x; se você ler isto muito depois, confira se a API ainda bate com o que está aqui.
Available Tools
5 toolscreate_noteA
Cria uma nova nota (ou tarefa pendente, se is_task=True).
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| content | No | ||
| is_task | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| slug | Yes | |
| title | Yes | |
| status | Yes | |
| created | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description only states the basic creation action without disclosing side effects, permissions, idempotency, or error behavior. This places full burden on the description, which is insufficiently transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence with no redundant information. It efficiently conveys the core function and the special behavior of is_task.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple nature of the tool and the presence of an output schema, the description is largely adequate. It covers the primary action and the conditional task creation, though it does not mention potential errors or specific return behavior, which the output schema likely handles.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has no descriptions for any parameters, so the description must compensate. It clarifies the is_task parameter by explaining that setting it to True creates a pending task, but it does not elaborate on title or content beyond their obvious names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the action (create) and resource (note), and distinguishes from siblings by specifying the optional task creation when is_task=True. This unequivocally identifies the tool's purpose among list, read, mark_done, and delete.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides clear context that this is for creating a new note or pending task, but does not explicitly mention alternatives or when not to use it. The purpose is self-evident, but lacks explicit guidance on excluding other operations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_noteA
Apaga uma nota permanentemente pelo slug.
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must disclose behavioral traits. It mentions 'permanentemente' (permanently), which is a key destructive trait. However, it omits details about error handling, idempotency, or side effects on related data, leaving some ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single concise sentence that front-loads the action and resource with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple delete tool with one parameter and an existing output schema (likely covering return values), the description is adequate. It covers the core operation and permanence, though it lacks explicit error behavior or conditions, which are minor for this simplicity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate. It clarifies that the slug parameter identifies the note to delete, adding essential meaning beyond the bare schema. It does not describe slug format, but the basic semantic is clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (delete), the resource (note), and the method (by slug). It differentiates from siblings like create, list, read, and mark_done by being the delete operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, such as mark_done for non-destructive updates. The description gives no context on prerequisites or when deletion is appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_notesA
Lista todas as notas e tarefas salvas, com título e status.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must convey behavioral traits. It states that the tool lists notes, implying a read-only operation, but it does not explicitly say that it does not modify data or that it has no side effects. For a list operation, this is a minor omission, earning a mid-range score.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that clearly conveys the tool's purpose and output. It contains no unnecessary words or redundant details, making it highly efficient and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description specifies what the output includes (title and status), which is useful for an agent. It does not mention ordering, pagination, or filtering, but since no parameters exist, these are likely not applicable. The description is sufficient for a simple list operation, though it could be slightly more explicit about the full output shape.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has no parameters (coverage 100%), so there is nothing to document. The description does not add any parameter information because none exist. This aligns with the baseline of 3 for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action: 'Lista todas as notas e tarefas salvas' (lists all saved notes and tasks) and specifies the output fields ('com título e status' - with title and status). This distinguishes it from sibling tools like create_note, read_note, mark_done, and delete_note, as it is the only listing operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description makes it clear that the tool is for listing all notes and tasks, which implies it should be used when a complete collection is needed. It does not explicitly mention alternatives or when not to use it, but the purpose is straightforward and context is sufficiently clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
mark_doneB
Marca uma tarefa como concluída (status vira 'done').
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| slug | Yes | |
| title | Yes | |
| status | Yes | |
| created | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral burden. It discloses the primary effect (status becomes 'done') but does not mention error handling, reversibility, or side effects. It is minimally transparent but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, concise sentence that front-loads the action and effect with no wasted words. It is perfectly sized for the tool's simplicity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is incomplete for an agent to call the tool correctly: it does not explain the required 'slug' parameter, nor does it provide usage context or error expectations. Even though an output schema exists, the missing parameter documentation is a significant gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no description for the 'slug' parameter (0% coverage), and the tool description does not explain it either. The description adds zero meaning to the parameter, leaving the agent to guess what 'slug' refers to.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Marca uma tarefa como concluída') and the resulting state ('status vira done'), making it unambiguous what the tool does. It distinguishes itself from sibling tools (create/list/read/delete) by indicating a status-update operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. The description only states what it does, not the context or conditions under which it should be invoked, and no alternatives are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_noteB
Lê o corpo completo de uma nota pelo slug.
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, but it only states the action and does not disclose potential side effects, permissions, errors, or rate limits. 'Read' implies non-destructive behavior, but that is not explicit.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence with no redundant wording. It communicates the essential purpose efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read operation, the description covers the core purpose and input. It does not mention output format or error cases, but given the availability of an output schema (not shown) and the simplicity of the tool, it is minimally adequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no description for 'slug', and the tool description only says 'by slug' without explaining what a slug is, its format, or whether it is a unique identifier. This leaves the parameter meaning partially inferred.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('read'), specifies the resource ('note'), and mentions the lookup key ('slug'). This clearly distinguishes it from sibling tools like create_note or list_notes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use or when-not-to-use guidance, but the description implies using this tool when the full body of a specific note is needed, as opposed to listing notes or performing mutations.
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.
5 tool updates
v0.1.0- First observed
create_note - First observed
delete_note - First observed
list_notes - First observed
mark_done - First observed
read_note
TDQS
Scored across 5 tools
Each tool has a clear primary action, and the CRUD operations are distinct. However, create_note doubles as a task creator via is_task, and mark_done applies only to tasks, which could cause slight ambiguity about whether notes also support status changes.
Most tools follow a clear verb_noun pattern (create_note, list_notes, read_note, delete_note), but mark_done breaks the pattern by using verb_adjective instead of verb_noun. This is a minor inconsistency that still leaves the intent understandable.
Five tools is appropriately scoped for a simple notes/tasks server. The set covers the essential operations without unnecessary bloat, making it easy for an agent to navigate.
The set lacks an update_note/edit_note operation, which is a notable gap for a notes domain. It also has no way to unmark a task or filter tasks from notes, limiting full lifecycle management for tasks.
Maintenance
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
Local-first task manager: create, edit, and complete tasks, projects, and checklists via MCP.
Create, list, and complete todo items through MCP.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to list, search, read, and append to Markdown notes through MCP tool calls, making it easy to interact with a second brain folder.-
- FlicenseBqualityCmaintenanceEnables task management via MCP tools for creating, listing, updating, completing, and deleting tasks with JSON file storage.6-
- AlicenseNot gradedqualityAmaintenanceEnables interaction with a local knowledge repository via MCP, providing tools for capturing, indexing, and searching Markdown notes with Git version control and optional semantic search.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables managing tasks in a structured TODO.md file through MCP tools for listing, adding, updating, setting status, logging notes, searching, and removing tasks while preserving hand-authored formatting.6MIT