Provides tools for managing markdown notes, including listing and reading markdown files from a specified directory.
Markdown Notes MCP Server
This project provides a simple MCP (Model Context Protocol) server for managing markdown notes. It's built using the fastmcp library.
Prerequisites
Python 3.10 or newer
uvpackage manager
Installation
Install
This project uses
uvfor dependency management. Running the command below will installfastmcpand any other dependencies listed inpyproject.toml.uv pip install fastmcp
Configuration
The server's behavior can be customized via the following environment variable:
MD_NOTES_PATH: Specifies the root directory for all note-related operations. If this variable is not set, the server will default to using the current working directory. Both thelist_notesandread_notetools will resolve file and directory paths relative to this base path.
Running the Server
You can run the server in two modes: run for production/consumption and dev for development and testing.
Run Mode
This mode is for running the server to be used by the Gemini CLI. The main.py script can now be run directly as it contains the server startup logic.
You should see output similar to this:
Dev Mode
This mode starts the MCP Inspector, a web application that allows interactive testing of the tools provided by the MCP server.
You will see output like this, including a URL to access the MCP Inspector:
Connecting to Gemini CLI
To use this MCP server with the Gemini CLI, you need to add it as a source.
After adding the server, you can use the /mcp command in the Gemini CLI to see the available tools.