Skip to main content
Glama
pfelilpe

Damn Vulnerable MCP Server Demo

by pfelilpe

addition

Add numbers securely using a vulnerable MCP server designed to demonstrate coding risks, aiding in educational security testing and awareness.

Instructions

Sum tool

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes

Implementation Reference

  • server.py:9-9 (registration)
    Registration of the 'addition' tool using the @mcp.tool() decorator.
    @mcp.tool()
  • server.py:10-12 (handler)
    The handler function for the 'addition' tool. It takes a string 'a' and evaluates it using Python's eval() to compute the sum, which poses security risks as noted in comments.
    def addition(a): """Sum tool""" return eval(a)

Other Tools

Related Tools

  • @FuzzyCZX/MCP
  • @YuheiNakasaka/arithmetic-mcp-server
  • @mikefey/mcp-server
  • @dynstat/mcp-demo
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @wudongjie/example-mcp-server

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pfelilpe/DVMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server