Skip to main content
Glama
pfelilpe

Damn Vulnerable MCP Server Demo

by pfelilpe

addition

Adds two numbers together to calculate their sum, demonstrating basic arithmetic operations within an educational security testing environment.

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 on the addition function.
    @mcp.tool()
  • server.py:10-12 (handler)
    The handler function for the 'addition' tool, which takes a single argument 'a' (a string expression) and evaluates it using Python's built-in eval() function to compute the result.
    def addition(a): """Sum tool""" return eval(a)

Other Tools

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