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

ใ‚ณใƒกใƒณใƒˆ

ใ€Œ้–‹็™บ่€…ใƒ„ใƒผใƒซใ€ใฎไป–ใฎใ‚ณใƒณใƒ†ใƒณใƒ„