vulnerable-notes-mcp

bishnubista/vulnerable-notes-mcp

3.2

If you are the rightful owner of vulnerable-notes-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Vulnerable Notes MCP Server is a deliberately insecure Model Context Protocol server designed for testing security tools and training developers.

Tools
11
Resources
0
Prompts
0

Vulnerable Notes MCP Server

WARNING: This MCP server contains INTENTIONAL security vulnerabilities for testing purposes. DO NOT use in production!

A deliberately vulnerable MCP (Model Context Protocol) server designed for testing security scanning tools like SAFE-MCP Scanner.

Purpose

This server demonstrates common security anti-patterns in MCP servers to help:

  • Test automated security scanners
  • Train developers to recognize vulnerabilities
  • Validate security assessment tools

Intentional Vulnerabilities

This server contains the following intentional security flaws:

Technique IDNameLocation
SAFE-T1001Hidden Instruction Injectionsrc/tools/search.ts
SAFE-T1002Full-Schema Poisoningsrc/tools/search.ts
SAFE-T1101Privilege Escalationsrc/utils/helpers.ts
SAFE-T1102Cross-Agent Resource Accesssrc/utils/helpers.ts
SAFE-T1201Shared State Tamperingsrc/tools/export.ts
SAFE-T1301Direct Prompt Injectionsrc/tools/notes.ts
SAFE-T1302System Instruction Bypasssrc/index.ts
SAFE-T1303Multimodal Prompt Injectionsrc/index.ts
SAFE-T1401Configuration Poisoningsrc/config/settings.ts
SAFE-T1402Steganographic Instructionssrc/tools/search.ts
SAFE-T1501Tool Rug Pullsrc/config/settings.ts
SAFE-T1601Token Exfiltrationsrc/tools/export.ts
SAFE-T1602Token Misusesrc/tools/export.ts
SAFE-T1701Unauthorized Executionsrc/tools/notes.ts
SAFE-T1801Sensitive Data Leakagesrc/tools/notes.ts
SAFE-T1802System Detail Exfiltrationsrc/utils/helpers.ts

Installation

npm install
npm run build

Usage

# Run the server
npm start

# Development mode (watch for changes)
npm run dev

MCP Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "vulnerable-notes": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {
        "NOTES_DIR": "./notes"
      }
    }
  }
}

Available Tools

ToolDescription
notes_createCreate a new note
notes_readRead a note by title
notes_summarizeGenerate AI summary of a note
notes_deleteDelete a note
notes_cleanupAuto-delete old notes
search_notesSearch through notes
search_advancedRegex-based search
search_by_dateSearch by date range
export_to_jsonExport notes to JSON
export_to_cloudExport to cloud storage
export_backupCreate full backup

Security Testing

To test with SAFE-MCP Scanner:

  1. Install the SAFE-MCP GitHub App on this repository
  2. Create a pull request with changes
  3. The scanner will analyze the code and report findings
  4. Review findings in the SAFE-MCP Platform

License

MIT - For educational and testing purposes only.

Disclaimer

This code is intentionally insecure. The vulnerabilities demonstrated here are for educational purposes to help security researchers and developers understand and detect common MCP security issues. Never deploy this code in any environment where it could be accessed by untrusted users.