Mcp-simple-client-server
Verified Safeby Kamwebdev
Overview
Demonstrates the Model Context Protocol (MCP) for connecting an LLM to external tools and enabling dynamic tool calling within a client-server architecture.
Installation
cd server && python mcp_server.pyEnvironment Variables
- MCP_URL
- USER_PROMPT
- MODEL
Security Notes
The server exposes network utility tools ('ping', 'check_port_80') that take arbitrary host inputs from the LLM. In a non-isolated environment, this could allow the LLM to perform network reconnaissance or denial-of-service against internal or external targets. For a demonstration, this is acceptable, but for production, rigorous input validation and access controls would be essential.
Similar Servers
fastmcp
FastMCP is an ergonomic interface for the Model Context Protocol (MCP), providing a comprehensive framework for building and interacting with AI agents, tools, resources, and prompts across various transports and authentication methods.
mcp-client-for-ollama
An interactive terminal client for connecting local Ollama LLMs to Model Context Protocol (MCP) servers, enabling advanced tool use and workflow automation for local LLMs.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
ollama-fastmcp-wrapper
A proxy service that bridges Ollama with FastMCP, enabling local LLM tool-augmented reasoning by exposing MCP servers' functionality to Ollama models.