Cover image
Try Now
2025-04-07

MCP server example practice

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Claude MCP Protocol Practice

This repository is a practice session for MIT Hack Decentralized AI summit. It includes basic steps to create a Claude MCP protocol up and running in under 5 minutes on Windows.

Weather App Setup

Prerequisites

  • Make sure you pip install uv

Steps

cd weather
uv run weather.py

This starts the server hosted locally on your machine. The python file includes tools available to LLM for getting alerts and forecast from government API.

Claude Configuration

Make sure you changed the claude_config.json available on Claude desktop:

  1. Navigate to File -> Settings -> Developer -> Edit Config
  2. Edit config section and provide absolute path to your python file

Voila! Your 1st MCP server is up and running in 5 mins.

Sample Config File

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "<abs_path_to_file>/mcp-server-weather"]
    }
  }
}

SQL-lite DB Example for Bakery Data

Steps to Run the SQL DB as an MCP Server

  1. Clone the repository:

    git clone https://github.com/modelcontextprotocol/servers.git
    
  2. Navigate to the SQLite directory:

    cd servers
    cd src
    cd sqlite
    
  3. Install Docker if needed:

  4. Build the Docker image:

    docker build -t mcp/sqlite .
    
  5. Update your Claude config file:

    {
      "mcpServers": {
        "sqlite": {
          "command": "docker",
          "args": [
            "run",
            "--rm",
            "-i",
            "-v",
            "mcp-test:/mcp",
            "mcp/sqlite",
            "--db-path",
            "/mcp/test.db"
          ]
        }
      }
    }
    
  6. Restart Claude to apply changes

Bakery Database Setup

  1. Create bakery DB tables:

    • ingredients (id, name, unit, quantity, cost, supplier, min_order_quantity)
  2. Populate with:

    • 10 ingredients with MOQs
  3. Add queries for:

    • Low stock alerts

Hope this is helpful to you in the future!

References

MIT Hack Documentation

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • jae-jae
  • MCP server for fetch web page content using Playwright headless browser.

  • ravitemer
  • A powerful Neovim plugin for managing MCP (Model Context Protocol) servers

  • patruff
  • Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools

  • pontusab
  • The Cursor & Windsurf community, find rules and MCPs

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • modelcontextprotocol
  • Model Context Protocol Servers

    Reviews

    4 (1)
    Avatar
    user_YvS5kAs3
    2025-04-17

    I have been using mcp_server_101 for a while now, and I must say it has exceeded my expectations. The setup was straightforward, and the documentation provided by harshal-14 is incredibly helpful. The server runs smoothly and has significantly improved my workflow. Highly recommend checking it out! You can find it here: https://github.com/harshal-14/mcp_server_101