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

deca-guard-mcp-server

v1.0.0

Published

MCP Server for code smell and security analysis

Readme

DecaGuard MCP Server

AI-powered code smell detection and security analysis server using the Model Context Protocol (MCP).

Quick Start

Option 1: Using npx (Recommended)

No installation required! Use directly via npx:

Configure Cursor IDE

Edit ~/.cursor/mcp.json (create if it doesn't exist):

{
  "mcpServers": {
    "decaguard": {
      "command": "npx",
      "args": ["-y", "deca-guard-mcp-server"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Restart Cursor

Completely quit and restart Cursor IDE.

Option 2: Install via npm

npm install -g deca-guard-mcp-server

Then configure ~/.cursor/mcp.json:

{
  "mcpServers": {
    "decaguard": {
      "command": "deca-guard-mcp-server",
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Option 3: Local Development Setup

For development or local installation:

git clone https://github.com/tomtarpey/deca-guard-mcp-server.git
cd deca-guard-mcp-server
npm install

Then configure ~/.cursor/mcp.json:

{
  "mcpServers": {
    "decaguard": {
      "command": "node",
      "args": ["/absolute/path/to/deca-guard-mcp-server/index.js"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage

After configuration, open any code file in Cursor and ask:

  • "Analyze this code for security vulnerabilities"
  • "Check this file for code smells"
  • "Review this code for quality and security issues"

Available Tools

1. analyze_code_smells

Detects maintainability issues:

  • Long methods
  • Duplicated code
  • Large classes
  • Feature envy
  • Primitive obsession
  • Dead code
  • Magic numbers
  • Nested conditionals

2. analyze_security_vulnerabilities

Scans for security issues:

  • SQL/Command injection
  • XSS vulnerabilities
  • Hardcoded secrets
  • Insecure cryptography
  • Broken authentication
  • Path traversal
  • Insecure deserialization
  • Input validation issues
  • Sensitive data exposure

3. analyze_code_quality_and_security

Combined analysis in a single call.

Supported Languages

  • JavaScript
  • TypeScript
  • Python
  • Java
  • Go
  • Rust

Configuration Options

Using Different LLM Providers

Anthropic Claude:

"env": {
  "ANTHROPIC_API_KEY": "sk-ant-...",
  "LLM_BASE_URL": "https://api.anthropic.com/v1",
  "LLM_MODEL": "claude-sonnet-4-20250514"
}

Local Ollama:

"env": {
  "LLM_BASE_URL": "http://localhost:11434/v1",
  "LLM_MODEL": "codellama"
}

Troubleshooting

Server not starting

  • Check that Node.js (v18+) is installed: node --version
  • Verify the command in mcp.json is correct
  • Check logs in Cursor's developer console

Tools not appearing

  • Restart Cursor completely
  • Verify mcp.json syntax is valid JSON
  • Check that API key is set correctly

Analysis taking too long

  • Use a faster model (e.g., gpt-4o-mini)
  • Consider analyzing smaller code snippets
  • Check your API rate limits

Development

Test the server locally

npm test

Run in development mode (with auto-reload)

npm run dev

Publishing

For maintainers, to publish a new version to npm:

npm version patch|minor|major
npm publish

The prepublishOnly script will automatically verify the package before publishing.

License

MIT