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

doclasana-mcp-server

v1.0.0

Published

MCP Server for Doclasana documentation platform integration with AI-powered IDEs

Readme

Doclasana MCP Server

NPM Version NPM Downloads License: MIT Node.js Version

This MCP (Model Context Protocol) server enables developers to access documentation from the Doclasana platform directly within AI-powered IDEs like Cursor, Cline, and Windsurf.

✨ Features

  • 🔐 Secure Authentication: Secure connection with API key
  • 📋 Document Listing: List all documents with pagination support
  • 📖 Document Viewing: View complete content of specific documents
  • 🔍 Content Search: Server-side search within document contents
  • 📝 Markdown Support: Full support for Markdown formatted documents
  • 🚨 Error Handling: Clear and user-friendly error messages

📦 Installation

NPM

npm install -g doclasana-mcp-server

From Source

git clone https://github.com/doclasana/doclasana-mcp-server.git
cd doclasana-mcp-server
npm install
npm run build

🚀 Quick Start

1. Build the Project

npm run build

2. Start the MCP Server

npm start

For development mode:

npm run dev

Note: The API key is specified in IDE configuration, not at server startup.

⚙️ IDE Configuration

Cursor IDE

Add the following configuration to your claude_desktop_config.json file:

{
  "mcpServers": {
    "doclasana": {
      "command": "node",
      "args": ["/path/to/your/node_modules/doclasana-mcp-server/dist/index.js"],
      "env": {
        "DOCLASANA_API_KEY": "your-actual-doclasana-api-key"
      }
    }
  }
}

Using Global Installation

If you installed globally:

{
  "mcpServers": {
    "doclasana": {
      "command": "doclasana-mcp",
      "env": {
        "DOCLASANA_API_KEY": "your-actual-doclasana-api-key"
      }
    }
  }
}

Important:

  • Update the args path to your project directory if installing from source
  • Replace DOCLASANA_API_KEY value with your actual API key

Other MCP-Compatible IDEs

You can configure this MCP server in other IDEs similarly. Just specify the Node.js command and required environment variables.

🛠️ Available Tools

This MCP server provides the following tools:

1. list_documents

Lists all documents accessible to the authenticated user.

Parameters:

  • page (optional): Page number (default: 1)
  • pageSize (optional): Documents per page (default: 20, max: 100)

Example:

List my documents

2. search_documents

Searches for keywords within document contents.

Parameters:

  • searchTerm (required): Keyword to search for
  • page (optional): Page number (default: 1)
  • pageSize (optional): Documents per page (default: 20, max: 100)

Example:

Search for documents containing "API key"

3. get_document

Retrieves the complete content of a specific document.

Parameters:

  • id (required): Document ID

Example:

Get document with ID "abc123"

💡 Usage Scenarios

Scenario 1: Exploring Project Documentation

  1. Tell your AI assistant in the IDE: "List my documents"
  2. Note the ID of an interesting document
  3. Use "Get document with ID [document-id]" to read the full content

Scenario 2: Finding Specific Information

  1. Search with a keyword like "API usage"
  2. Select the relevant document from results
  3. View full content if needed

Scenario 3: Tracking Updates

  1. Regularly list documents
  2. Check modification dates for updated documents
  3. Review updated document contents

🔧 Troubleshooting

API Key Error

  • Ensure DOCLASANA_API_KEY is correctly set in IDE configuration
  • Verify your API key is valid and active
  • If you get "DOCLASANA_API_KEY environment variable is required" error, check your IDE configuration

Connection Error

  • Check your internet connection
  • Verify Doclasana API service is operational

Authorization Error

  • Ensure your API key has necessary permissions for documents

🧪 Development

Running Tests

npm test

Project Structure

doclasana-mcp-server/
├── src/
│   ├── index.ts          # Main MCP server code
│   └── global.d.ts       # TypeScript type definitions
├── dist/                 # Compiled JavaScript files
├── package.json          # Project dependencies
├── tsconfig.json         # TypeScript configuration
├── LICENSE              # MIT License
└── README.md            # This file

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run dev - Run in development mode with auto-reload
  • npm start - Start the compiled server
  • npm test - Run tests
  • npm run prepublishOnly - Pre-publish build hook

🤝 Contributing

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

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

🆘 Support

If you have any questions or suggestions, please reach out through GitHub Issues.

🏷️ Version History

v1.0.0

  • Initial MVP release
  • Basic document listing, searching, and viewing features
  • Secure API key authentication
  • Markdown document support

🔗 Related


Made with ❤️ by the Doclasana Team