markdown-sidecar-mcp
Markdown Sidecar MCP Server
Documentation
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-mcpArguments
- `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:mcpContributing
1. Fork the repository
2. Create your feature branch
3. Commit your changes and push them up
5. Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is markdown-sidecar-mcp?
markdown-sidecar-mcp is Markdown Sidecar MCP Server
How do I install markdown-sidecar-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is markdown-sidecar-mcp open source?
Yes — it is hosted on GitHub at https://github.com/lwsinclair/markdown-sidecar-mcp.
Related MCP tools
Model Context Protocol Servers
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
MCP server to provide Figma layout information to AI coding agents like Cursor
The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP