Back to Home
sanketshivale icon

MCP-SERVER

by sanketshivale

Overview

Provides an API to query a local file-based JSON database via the Model Context Protocol, exposing data retrieval and filtering tools.

Installation

Run Command
node mcp-server.js

Security Notes

The server directly accesses properties of the loaded JSON database object using user-provided 'table' and 'field' values (e.g., db[table], r[field]). While inputSchema is defined for these tools, the handler functions themselves do not perform explicit sanitization or restrictive type checking on these inputs. If an attacker can provide values like '__proto__' or 'constructor' for 'table' or 'field' (e.g., by bypassing or exploiting a flaw in the Model Context Protocol SDK's input validation), it could potentially lead to prototype pollution, arbitrary object property manipulation, or unexpected behavior. This poses a significant security risk if the server is exposed to untrusted input without robust external validation. Additionally, the server reads the entire 'db.json' file on every tool call, which could be a performance bottleneck for large files.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassLow
Avg Tokens10000
Stars0
Forks0
Last Update2025-11-19

Tags

MCPAPIJSON DBLocal DataTooling