Back to Home
freemangh icon

mcp-demo-server

Verified Safe

by freemangh

Overview

Provides demo servers in Go and Python to demonstrate and test the Model Context Protocol (MCP) using various tools like echotest, timeserver, and fetch.

Installation

Run Command
docker run -d -p 8080:8080 --name go-mcp mcp-server-demo-go:latest

Environment Variables

  • DOCKER_USERNAME
  • DOCKER_PASSWORD

Security Notes

The 'fetch' tool, a core demo feature, allows the server to make HTTP/HTTPS requests to arbitrary URLs. This functionality, while intended for the demo, can pose a Server-Side Request Forgery (SSRF) risk if deployed without proper network isolation, as it could potentially access internal network resources. However, the code includes basic URL scheme validation and response size limits (up to 64KB) for safety. Container deployments leverage strong security contexts (runAsNonRoot, dropped capabilities, readOnlyRootFilesystem for Go) which significantly enhance security posture. No hardcoded secrets, obfuscation, or obvious malicious patterns were identified. For a demonstration project, the explicit 'fetch' functionality is acceptable given the context.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassLow
Avg Tokens2000
Stars1
Forks0
Last Update2025-12-05

Tags

MCPModel Context ProtocolDemo ServerGoPythonKubernetesHelm