MCPInstructionServer

by MartinSchlott

172 downloads Not rated yet MIT
GitHub

About

# MCPInstructionServer A TypeScript MCP (Model Context Protocol) server for AI assistants to discover and access structured markdown instructions. ## Overview MCPInstructionServer enables AI assistants like Claude to access a library of markdown-based instructions through a standardized interface. By organizing…

Details

License
MIT

Explore

- Simple filesystem-based storage: Just markdown files in directories
- Recursive directory scanning: Organize instructions in a hierarchical folder structure
- Path security: Prevents directory traversal and access to files outside the allowed directory
- Automatic summary extraction: Pulls the H1 title and first paragraph from each document
- Model Context Protocol support: Compatible with AI assistants that implement MCP

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCPInstructionServer
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Node.js 18+ (for ESM support)
- npm or yarn
- Basic familiarity with TypeScript and markdown

npm install

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcpinstructionserver": {
            "MCPInstructionServer": {
                "command": "node",
                "args": [
                    "dist/index.js",
                    "/path/to/instructions"
                ]
            }
        }
    }
}

McpServers

{
    "MCPInstructionServer": {
        "command": "node",
        "args": [
            "dist/index.js",
            "/path/to/instructions"
        ]
    }
}

A TypeScript MCP (Model Context Protocol) server for AI assistants to discover and access structured markdown instructions.

Overview

MCPInstructionServer enables AI assistants like Claude to access a library of markdown-based instructions through a standardized interface. By organizing instructions as markdown files, you can:

- Create a centralized knowledge base for AI prompting
- Maintain versioned, structured guidance documents
- Allow AI assistants to search and retrieve specific instructions on-demand
- Establish consistent patterns for AI-assisted tasks

How It Works

The server indexes markdown files in a specified directory (and its subdirectories), treating each file as an instruction document. The server extracts each document's title and first paragraph to create searchable summaries.

AI assistants can then:
1. List all available instructions with their summaries
2. Request specific instructions by ID

Features

- Simple filesystem-based storage: Just markdown files in directories
- Recursive directory scanning: Organize instructions in a hierarchical folder structure
- Path security: Prevents directory traversal and access to files outside the allowed directory
- Automatic summary extraction: Pulls the H1 title and first paragraph from each document
- Model Context Protocol support: Compatible with AI assistants that implement MCP

Prerequisites

- Node.js 18+ (for ESM support)
- npm or yarn
- Basic familiarity with TypeScript and markdown

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.