npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcp-x/mcp-docs-server

v1.0.0

Published

Universal MCP Server Demo - Template for documentation-based MCP servers

Readme

@mcp-x/mcp-docs-server

Universal MCP Server Demo - Template for creating documentation-based MCP servers

🎯 What is this?

This is a universal template for creating MCP (Model Context Protocol) servers that provide AI agents with access to documentation. It's designed to be:

  • Easy to customize - replace docs, update configuration, publish your own
  • Production ready - includes TypeScript, testing, and proper npm packaging
  • Cross-platform - works with Cursor, VS Code, Claude Desktop, Windsurf
  • Documented - comprehensive examples and setup guides

🚀 Quick Start

Use as template:

npx @mcp-x/mcp-docs-server create my-docs-server
cd my-docs-server
npm install
npm run build
npx your-package-name  # Test your server

Test the demo:

npx @mcp-x/mcp-docs-server
# ✅ MCP Server ready for STDIO communication

📁 What's included

  • Universal MCP server - STDIO protocol implementation
  • Document management - markdown parsing with frontmatter
  • Search capabilities - basic text search across documents
  • IDE configurations - ready-to-use configs for popular IDEs
  • TypeScript setup - full development environment
  • Testing framework - Jest tests included
  • Publishing guide - npm package publication

🛠️ Customization

1. Replace documentation

# Remove demo docs
rm -rf docs/*

# Add your markdown files
cp -r /path/to/your/docs/* docs/

# Update package.json name and description

2. Configure server

// src/config.ts
export const config = {
  name: "your-docs-server",
  description: "Your documentation MCP server",
  docsPath: "./docs"
};

3. Build and test

npm run build
node dist/server.js

🔧 IDE Integration

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "your-docs": {
      "command": "npx",
      "args": ["-y", "@your-org/your-docs-server"]
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "mcpServers": {
    "your-docs": {
      "command": "npx", 
      "args": ["-y", "@your-org/your-docs-server"]
    }
  }
}

Claude Desktop

Add to config file:

{
  "mcpServers": {
    "your-docs": {
      "command": "npx",
      "args": ["-y", "@your-org/your-docs-server"]
    }
  }
}

📚 Available Tools

list_documents

List all available documents

Input: { section?: "guides" | "api" | "all" }
Output: Array of document metadata

get_document

Get full document content

Input: { path: "guides/getting-started.md" }
Output: { content: string, metadata: object }

search_docs

Search across all documentation

Input: { query: string, maxResults?: number }
Output: Array of search results with relevance scores

🏗️ Architecture

MCP Client (AI Agent)
    ↓ JSON-RPC over STDIO
MCP Server (Node.js)
    ↓
Document Manager
    ↓
File System (markdown files)

Key Components:

  • STDIO Transport - communication with AI agents
  • Document Parser - markdown + frontmatter processing
  • Search Engine - text-based search with relevance scoring
  • Tool Registry - MCP tool definitions and handlers

🧪 Development

# Install dependencies
npm install

# Start development server  
npm run dev

# Run tests
npm test

# Build for production
npm run build

# Test built version
node dist/server.js

📦 Publishing Your Server

  1. Update package.json

    {
      "name": "@your-org/your-docs-server",
      "description": "Your custom documentation server"
    }
  2. Build and test

    npm run build
    npm test
  3. Publish to npm

    npm login
    npm publish --access public
  4. Test installation

    npx @your-org/your-docs-server

🤝 Contributing

This template is maintained by the MCP-X organization. Contributions welcome!

📄 License

MIT License - see LICENSE file for details

🔗 Related Projects


Made with ❤️ by the MCP-X for Mnemoverse and community