Go MCP server for serving markdown documents

Go MCP server for serving markdown documents

go-mcp-server-mds•bywarashi

A Go MCP server that exposes markdown files from a filesystem as MCP resources and tools for listing and reading them.

License: MIT License•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Serves markdown files via MCP and lists all available markdown files with metadata.
  • •Reads individual markdown file contents through a tool requiring a path and returning path, size, frontmatter and full content.
  • •Registers each markdown file as a resource with a file:// URI and text/markdown MimeType.
  • •Parses YAML or TOML frontmatter and makes that metadata available through tools and resource descriptions.

BEST FOR

  • •Exposing a local directory of markdown notes or documentation to MCP clients.
  • •Organizing and describing markdown documents using parsed frontmatter metadata.

ABOUT GO-MCP-SERVER-MDS

Go MCP server for serving markdown documents is cataloged as an MCP server attributed to warashi. A Go MCP server that exposes markdown files from a filesystem as MCP resources and tools for listing and reading them. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Go MCP server for serving markdown documents are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What frontmatter formats does the server support?

It supports markdown files with YAML frontmatter delimited by --- or TOML frontmatter delimited by +++.

How are markdown files exposed as resources?

Each markdown file is registered as a resource with a file:// URI, the base filename as its name, JSON-encoded frontmatter as its description, text/markdown as MimeType, and file size in bytes.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 52a11346d2cd · 采集于 2026-11-13 10:55:22 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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]
---

# Document Content

TOML Frontmatter

TOML frontmatter uses +++ as delimiters:

+++
title = "My Document"
date = 2024-03-21
tags = ["documentation", "markdown"]
+++

# Document Content

The frontmatter metadata is parsed and made available through the server's tools and resource descriptions. This metadata can include any valid YAML or TOML data and is useful for organizing and describing your markdown documents.

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 (
    "context"
    "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 (.).
  • -name: Sets the server name. Defaults to mcp-server-mds.
  • -description: Sets the server description. Defaults to Markdown Documents Server.

Available Tools

list_{server-name}_markdown_files

Lists all markdown files managed by the server. Returns metadata including:

  • File path
  • File size
  • Parsed frontmatter (if available)

read_{server-name}_markdown_file

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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Go MCP server for serving markdown documents from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/go-mcp-server-mds)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation