Sponsored by Deepsite.site

Simple MCP Server

Created By
kongo978 months ago
A lightweight MCP (Model Context Protocol) Server implementation exposing custom tools via SSE for integration with AI clients.
Content

Simple MCP Server

A lightweight MCP (Model Context Protocol) Server implementation exposing custom tools via SSE for integration with AI clients.

Table of Contents

Overview

This repository provides a simple MCP Server that implements custom tools (e.g., weather lookups) and exposes them over Server-Sent Events (SSE). It can be run in a Docker container for quick deployment and integrates seamlessly with clients that support the MCP protocol.

Features

  • Exposes tools as MCP endpoints over SSE
  • Containerized for easy deployment via Docker Compose
  • Configurable port and host
  • Example tools included (e.g., weather alerts & forecast)

Prerequisites

  • Docker ≥ 20.10
  • Docker Compose ≥ 1.29

Getting Started

Clone the repository and navigate into the project directory:

git clone git@github.com:kongo97/simple-mcp-server.git
cd simple-mcp-server

Build the Docker Image

docker compose build

This will build the MCP Server image using the provided Dockerfile.

Start the Container

docker compose up -d

This command will:

  • Pull/build the image
  • Start the container in detached mode
  • Map port 8100 on the host to port 8100 in the container

To stop and remove the container, run:

docker compose down

Usage

Connecting an MCP Client

Configure your MCP-compatible client (e.g., Claude Desktop) to connect via SSE at:

http://localhost:8100/sse

Inside docs folder, you can find a simple configuration compatible with Claude Desktop (claude_desktop_config.json)

Available Endpoints

MethodPathDescription
GET/sseOpen SSE stream for MCP communication
POST/sseSend JSON-RPC requests over SSE

Configuration

You can customize the server port and host by setting environment variables in docker-compose.yml or directly in the container:

services:
  mcp-server:
    environment:
      - MCP_PORT=8100         # default port
      - MCP_HOST=0.0.0.0      # bind address

Development

  1. Edit or add your MCP tools in src/server.py (or your chosen file).
  2. Rebuild and restart the container:
    docker compose build
    docker compose up -d
    
  3. Check logs for errors:
    docker compose logs -f
    

Troubleshooting

  • 404 on /sse: Ensure the server is bound to the correct port and path.
  • Connection refused: Verify Docker is running and the container is healthy:
    docker ps
    docker logs simple-mcp-server
    
  • Client errors: Check the client configuration for correct SSE URL and protocol version.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs