A favicon of Markdown Sidecar Server

Markdown Sidecar Server

Serve and access markdown documentation seamlessly from your local environment. Enhance your code generation process by exposing markdown files as resources or tools for various package managers. Simplify documentation access for NPM, Go Modules, and PyPi packages with ease.

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install speakeasy-api/markdown-sidecar-mcp -c claude

This command will automatically install and configure the Markdown Sidecar Server MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

View JSON configuration
{
  "mcpServers": {
    "Markdown Sidecar Server": {
      "command": "npx",
      "args": [
        "-y",
        "--package",
        "markdown-sidecar-mcp",
        "--",
        "mcp",
        "start",
        "--workingDir",
        "{REPO_WORKING_DIR}",
        "--packageName",
        "{PACKAGE_NAME}",
        "--registry",
        "npm"
      ]
    }
  }
}

Markdown Sidecar MCP Server

This provides a structured way to serve and access markdown documentation from an MCP server for NPM packages, Go Modules, or PyPi packages. It enables informed code generation by exposing these markdown files as resources or tools.

[!NOTE]
Note: Many PyPi packages do not have markdown docs exposed, so this library will also mount python help root docs by default.

This is designed to be executed from within a project directory where the requested packages are already installed locally. Access always stays within your local environments working directory.

Installation

npx -y markdown-sidecar-mcp

Arguments

  • workingDir: The working directory of your repo.
  • packageName: The name of the package or module to request
  • registry: Registry the package will be found in (npm, gomodules, or pypi)
  • docsSubDir: [OPTIONAL] The specific subdirectory to look for markdown docs in. Defaults to package root.
  • mcpPrimitive: [OPTIONAL] The MCP primitive to expose from the server (tool or resource). This defaults to tool, some clients do not currently support resources.

Cursor Installation Steps

Add the following server definition to your .cursor/mcp.json file:

{
  "mcpServers": {
    "sidecar": {
      "command": "npx",
      "args": [
        "-y", "--package", "markdown-sidecar-mcp",
        "--",
        "mcp", "start",
        "--workingDir", "{REPO_WORKING_DIR}",
        "--packageName", "{PACKAGE_NAME}",
        "--registry", "npm"
      ]
    }
  }
}

Development

# Install dependencies
npm i

# Build
npm run build

# Run with Bun
npm run build:mcp

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes and push them up
  4. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related topics:
Share:
Details:
  • Stars


    1
  • Forks


    0
  • Last commit


    1 month ago
  • Repository age


    2 months
  • License


    MIT
View Repository

Auto-fetched from GitHub .

MCP servers similar to Markdown Sidecar Server:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


Markdown Sidecar Server: MCP Server – MCP.Bar