go-mcp-server-mds
About
A Go implementation of a Model Context Protocol (MCP) server that serves markdown files with frontmatter support from a filesystem.
Details
- Author
- Warashi
- GitHub stars
- 1
- Downloads
- 390
- Categories
- Other
Jump to
- Serves markdown files over MCP as resources and tools
- Lists all markdown files with metadata and frontmatter
- Reads individual markdown file content and frontmatter
- Supports YAML (---) and TOML (+++) frontmatter
- Uses Go’s fs.FS for filesystem abstraction
- URI-based resource access via file:// URIs
Install with go get github.com/Warashi/go-mcp-server-mds. Use the Go library: create a server with mcpmds.New and start it via server.ServeStdio(context.Background()). Alternatively, install the CLI tool mcp-server-mds with go install github.com/Warashi/go-mcp-server-mds/cmd/mcp-server-mds@latest and run it with -path to specify the markdown directory.
go-mcp-server-mds
A Go implementation of a Model Context Protocol (MCP) server that serves markdown files from a filesystem.
Overview
This server provides a way to expose markdown files through the Model Context Protocol, making them accessible as resources and providing tools to list and read markdown files. It supports markdown files with YAML or TOML frontmatter.
Features
- Serve markdown files via MCP
- List all available markdown files with metadata
- Read individual markdown file contents
- Support for YAML and TOML frontmatter
- File system abstraction using fs.FS
- Resource management with URI-based access
Frontmatter Support
The server supports markdown files with YAML or TOML frontmatter. Frontmatter is metadata placed at the beginning of a markdown file, enclosed by delimiters.
YAML Frontmatter
YAML frontmatter uses --- as delimiters:
```
---
title: My Document
date: 2024-03-21
tags: [documentation, markdown]
---
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



