drms-mcp-server

1.2.6 • Public • Published

🚀 DRMS - Documentation RAG MCP Server

npm version GitHub stars GitHub issues License: MIT

Real-time documentation access for AI coding tools with automatic library discovery

DRMS provides your AI coding assistants with instant access to up-to-date documentation from any library or framework. No more outdated examples or deprecated APIs!

✨ What It Does

  • 🔥 Instant Documentation: Pre-loaded with 40+ popular libraries (React, Next.js, Vue, Python, FastAPI, etc.)
  • 🧠 Smart Search: Vector-based semantic search finds exactly what you need
  • 🚀 Auto Discovery: Mention any library → DRMS finds and indexes it automatically
  • Universal: Works with Cursor, Windsurf, Claude Code, and any MCP-compatible tool

🛠️ Quick Install

One-Command Setup (Recommended) ⚡

# Install globally
npm install -g drms-mcp-server

# Auto-setup everything (Python deps, virtual env, config)
npx drms install

That's it! The installer will:

  • ✅ Detect your Python installation
  • ✅ Create a virtual environment
  • ✅ Install all Python dependencies
  • ✅ Generate configuration for your IDE
  • ✅ Test the installation

Manual Setup (Advanced)

If you prefer manual control:

Step 1: Install DRMS

npm install -g drms-mcp-server

Step 2: Create Virtual Environment

# Create a dedicated virtual environment for DRMS
python3 -m venv ~/.drms/venv
source ~/.drms/venv/bin/activate  # On Windows: ~/.drms/venv\Scripts\activate

# Install dependencies in the virtual environment
pip install mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

Option B: System Python (if allowed)

# Try system-wide install (may require --user flag)
pip install mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

# If that fails, try user install:
pip install --user mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

Step 3: Get Your Configuration

🎯 Easy Way - Use Configuration Generator:

# Use the built-in configuration generator
drms config

# This will automatically detect your system and generate the correct configuration

📝 Manual Configuration:

Cursor

Add to your Cursor settings (Cmd/Ctrl + , → MCP):

{
  "mcpServers": {
    "drms": {
      "command": "drms",
      "args": ["start"]
    }
  }
}

Windsurf

Add to your Windsurf MCP config:

If you used Virtual Environment:

{
  "mcpServers": {
    "drms": {
      "command": "/Users/YOUR_USERNAME/.drms-env/bin/python",
      "args": ["mcp_server.py"],
      "cwd": "/path/to/node_modules/drms-mcp-server",
      "env": {
        "PYTHONPATH": "/path/to/node_modules/drms-mcp-server/src"
      }
    }
  }
}

If System Python Works:

{
  "mcpServers": {
    "drms": {
      "command": "drms",
      "args": ["start"]
    }
  }
}

Claude Code (Desktop)

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "drms": {
      "command": "drms",
      "args": ["start"]
    }
  }
}

Step 3: Start Using

Restart your IDE and start asking for documentation:

  • "How do I use React hooks?"
  • "Show me FastAPI authentication examples"
  • "What's new in Vue 3?"

📋 Available Commands

Command What it does
drms start Start MCP server for IDE integration
drms api Start REST API server
drms search "query" Search documentation from terminal
drms setup Interactive setup wizard

🔧 Alternative Installation (Source)

If npm doesn't work for you:

# Clone and install
git clone https://github.com/pate0304/DRMS.git
cd DRMS
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-minimal.txt

# Configure your IDE to use:
# Command: python
# Args: ["mcp_server.py"] 
# Working Directory: /path/to/DRMS

💡 How It Works

  1. Ask your AI: "How do I use useState in React?"
  2. DRMS searches: Latest React documentation in real-time
  3. AI responds: With current, accurate examples and explanations
  4. You code: With confidence using up-to-date information

🔍 MCP Tools Available in Your IDE

Once configured, your AI assistant can use these tools:

  • search_documentation - Find docs across all libraries
  • discover_library - Auto-index new libraries
  • get_library_info - Show what's available
  • search_code_examples - Find specific code patterns

🌟 Pre-loaded Libraries

Frontend: React, Next.js, Vue, Angular, Svelte, Tailwind CSS
Backend: FastAPI, Django, Flask, Express, Node.js
Python: Pandas, NumPy, Requests, Scikit-learn
Tools: TypeScript, Jest, Docker, AWS, GCP

Plus automatic discovery for any library you mention!

🆘 Troubleshooting

"0 tools available" in IDE

This means the MCP server is connecting but failing to start properly.

Quick Fix:

# Run automated diagnostics
drms doctor

# If issues found, run auto-installer
drms install

# Test if DRMS starts correctly
drms start

Installation Issues

# Run full health check and diagnostics
drms doctor

# Re-run the auto-installer
drms install

# Generate fresh configuration
drms config

# This will detect your system and show the exact config to use

System-Specific Issues

macOS (Externally Managed Python):

# If you get "externally-managed-environment" error:
python3 -m venv ~/.drms-env
source ~/.drms-env/bin/activate
pip install mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

# Then use virtual environment config in your IDE

Windows:

# Use Windows paths
python -m venv %USERPROFILE%\.drms-env
%USERPROFILE%\.drms-env\Scripts\activate
pip install mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

Linux (Ubuntu/Debian):

# Install python3-venv if needed
sudo apt update && sudo apt install python3-venv

# Then follow virtual environment setup
python3 -m venv ~/.drms-env
source ~/.drms-env/bin/activate
pip install mcp chromadb sentence-transformers requests beautifulsoup4 pydantic-settings

Quick Verification

# 1. Check npm package is installed
npm list -g drms-mcp-server

# 2. Check Python dependencies
python -c "import mcp; print('✅ MCP available')"

# 3. Test DRMS command
drms --help

# 4. Generate configuration
drms config

📞 Support

📄 License

MIT License - see LICENSE file for details.


🚀 Get Started Now

Ready to revolutionize your AI coding experience? Get started with DRMS today! 🎯

# One-command installation
npm install -g drms-mcp-server
npx drms install

📦 NPM Package

npm version npm downloads

Install: npm install -g drms-mcp-server

🤝 Contributing & Support

👨‍💻 Author

Created by DRMS Team

Connect with us:


🎯 Transform your AI coding workflow with DRMS - Documentation at your fingertips!

Package Sidebar

Install

npm i drms-mcp-server

Weekly Downloads

622

Version

1.2.6

License

MIT

Unpacked Size

229 kB

Total Files

36

Last publish

Collaborators

  • practicalai