MCP.so
็™ปๅฝ•

๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ

@sanjaydubey31

ๅ…ณไบŽ ๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ

ๆš‚ๆ— ๆฆ‚่งˆ

ๅŸบๆœฌไฟกๆฏ

ๅˆ†็ฑป

ๅผ€ๅ‘ๅทฅๅ…ท

่ฟ่กŒๆ—ถ

python

ไผ ่พ“ๆ–นๅผ

stdio

ๅ‘ๅธƒ่€…

sanjaydubey31

้…็ฝฎ

ไฝฟ็”จไธ‹้ข็š„้…็ฝฎ,ๅฐ†ๆญคๆœๅŠกๅ™จๆทปๅŠ ๅˆฐไฝ ็š„ MCP ๅฎขๆˆท็ซฏใ€‚

{
  "mcpServers": {
    "build-custom-mcp-servers-sanjaydubey31": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

ๅทฅๅ…ท

ๆœชๆฃ€ๆต‹ๅˆฐๅทฅๅ…ท

ๅทฅๅ…ทๆ˜ฏไปŽ README ไธญ่‡ชๅŠจๆๅ–็š„ใ€‚็ปดๆŠค่€…ๅฏไปฅๅœจ ## Tools ๆ ‡้ข˜ไธ‹ๅˆ—ๅ‡บๅทฅๅ…ท,ๅณๅฏๅกซๅ……่ฟ™้ƒจๅˆ†ๅ†…ๅฎนใ€‚

ๆฆ‚่งˆ

What is ๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ?

A demonstration MCP server built with the Python SDK (mcp[cli]) that exposes tools for note management, weather fetching (WeatherAPI.com), and news search (Brave Search). It uses local file storage for notes and external API keys via a .env file.

How to use ๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ?

Set up Python 3.12 and a virtual environment, install dependencies (e.g., uv sync), copy .env.example to .env and add your API keys, then run mcp install main.py to add the server to Claude Desktop or mcp dev main.py for debugging.

Key features of ๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ

  • Note taking (add, read, latest, summarize)
  • Current weather fetching for any city
  • Brave Search API news integration
  • .env file configuration for API keys
  • Built with the MCP Python SDK

Use cases of ๐Ÿš€ Build Custom MCP Servers ๐Ÿ“โ˜€๏ธ๐Ÿ“ฐ

  • Manage personal notes via conversational AI
  • Check realโ€‘time

่ฏ„่ฎบ

ๅผ€ๅ‘ๅทฅๅ…ท ๅˆ†็ฑปไธ‹็š„ๆ›ดๅคš MCP ๆœๅŠกๅ™จ