1. Conduid
  2. AI
  3. Go MCP Server Mds
MCP server · AI

Go MCP Server Mds

A Go implementation of a Model Context Protocol (MCP) server that serves markdown files with frontmatter support from a filesystem.

Unclaimed MIT last commit a year ago mcpgogolangaimodelcontextprotocol
49Fair

Scored 5 months ago · breakdown

About Go MCP Server Mds

Go MCP Server Mds is an MCP server published by Warashi in the AI category: a Go implementation of a Model Context Protocol (MCP) server that serves markdown files with frontmatter support from a filesystem.

The repository has 1 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/Warashi/go-mcp-server-mds

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Go MCP Server Mds

Powered by Claude · Grounded in docs

I know everything about Go MCP Server Mds. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 1 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

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

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.

README fetched from the repository 1 hours ago. The original is authoritative.

Questions

About Go MCP Server Mds

How do I install Go MCP Server Mds?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Go MCP Server Mds safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Go MCP Server Mds still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.