Back to Home
LAB271 icon

mcp-studies

Verified Safe

by LAB271

Overview

Demonstrates the fundamental architecture of an MCP server using stdio transport, showcasing core primitives like tools, prompts, and resources.

Installation

Run Command
uv run spikes/000_stdio/main_mcp_server.py

Environment Variables

  • LOG_LEVEL
  • PYTHONUNBUFFERED
  • SERVER_NAME
  • FASTMCP_HOST
  • FASTMCP_PORT
  • NEO4J_AUTH
  • NEO4J_HEAP_INITIAL
  • NEO4J_HEAP_MAX
  • NEO4J_USER
  • NEO4J_PASSWORD
  • NEO4J_HOST
  • NEO4J_PORT
  • NEO4J_DATABASE
  • MCP_TRANSPORT
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_DB

Security Notes

The `calculate` tool uses `eval()` which is inherently dangerous, even with the `allowed_chars` filtering. While the filtering reduces common injection vectors, `eval()` can still be a source of vulnerabilities if not meticulously secured against all possible edge cases. Additionally, some Docker Compose files contain default hardcoded database credentials which could pose a risk if deployed without proper environment variable overrides.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2026-01-06

Tags

MCPServerPythonStdioFastMCP