go-mcp-server-mds
A Go implementation of a Model Context Protocol (MCP) server that serves markdown files with frontmatter support from a filesystem.
Warashi
README
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
Installation
go get github.com/Warashi/go-mcp-server-mds
Usage
Here's a basic example of how to create and use the MCP markdown server:
package main
import (
"os"
mcpmds "github.com/Warashi/go-mcp-server-mds"
)
func main() {
// Create a new server using the current directory
server, err := mcpmds.New(
"markdown-server",
"A server that provides access to markdown files",
os.DirFS("."),
)
if err != nil {
panic(err)
}
// Start the server
if err := server.ServeStdio(context.Background()); err != nil {
panic(err)
}
}
Command-Line Tool (mcp-server-mds
)
This repository includes a command-line tool mcp-server-mds
that runs the server directly.
Installing
To build the command-line tool:
go install github.com/Warashi/go-mcp-server-mds/cmd/mcp-server-mds@latest
Running
To run the server, execute the built binary. It serves markdown files from a specified directory over standard input/output.
$HOME/go/bin/mcp-server-mds -path /path/to/your/markdown/files
Flags:
-path
: Specifies the directory containing the markdown files to serve. Defaults to the current directory (.
).
Available Tools
listMarkdownFiles
Lists all markdown files managed by the server. Returns metadata including:
- File path
- File size
- Parsed frontmatter (if available)
readMarkdownFile
Reads a specific markdown file. Requires:
path
: The path to the markdown file
Returns:
- File path
- File size
- Parsed frontmatter
- Full file content
Resource Access
Resources are accessible via file://
URIs. Each markdown file is registered as a resource with:
- URI:
file://{path}
- Name: Base filename
- Description: JSON-encoded frontmatter
- MimeType:
text/markdown
- Size: File size in bytes
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.