@mcp-x/mcp-docs-server
v1.0.0
Published
Universal MCP Server Demo - Template for documentation-based MCP servers
Maintainers
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 serverTest 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 description2. 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 metadataget_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
Update package.json
{ "name": "@your-org/your-docs-server", "description": "Your custom documentation server" }Build and test
npm run build npm testPublish to npm
npm login npm publish --access publicTest installation
npx @your-org/your-docs-server
🤝 Contributing
This template is maintained by the MCP-X organization. Contributions welcome!
- Report bugs: GitHub Issues
- Feature requests: Discussions
- Pull requests: Follow our Contributing Guide
📄 License
MIT License - see LICENSE file for details
🔗 Related Projects
- @mnemoverse/mcp-docs-server - Production server powering Mnemoverse docs
- MCP SDK - Official TypeScript SDK
- MCP Specification - Protocol documentation
Made with ❤️ by the MCP-X for Mnemoverse and community
