Skip to main content

Building your own Custom MCP Servers

Project description

🚀 Build Custom MCP Servers 📝☀️📰

📖 Project Description

This project demonstrates a simple MCP Servers built using the MCP mcp[cli] Python SDK. It provides several tools exposed through the MCP server:

  • Note Management: Add, read, retrieve the latest, and generate summaries of notes stored locally.
  • Weather Information: Fetch current weather data for a specified city using the WeatherAPI.com service.
  • News Search: Perform news searches using the Brave Search API.

It utilizes API keys stored in a .env file for external services.

🛠️ Setup Instructions

Follow these steps to get the FastMCP agent running:

  1. Prerequisites:

    • Python 3.12 installed.
    • A virtual environment manager (like venv, pipenv, poetry, or uv) is recommended.
  2. Clone the Repository (if you haven't already):

    # Make sure you are in the correct parent directory
    git clone https://github.com/sourangshupal/Build-Custom-MCP-Servers # Or use the current directory if already cloned
    cd Build-Custom-MCP-Servers 
    
  3. Set up Virtual Environment & Install Dependencies:

    • Install dependencies (assuming uv, based on uv.lock, otherwise adjust for pip/poetry):
      uv sync
      uv lock
      source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`
      
    • OR
      pip install uv # if you don't have uv
      uv pip install -r requirements.txt # Or uv sync if using pyproject.toml directly
      # If not using uv, likely: pip install -r requirements.txt or poetry install or pip install .
      
  4. Configure Environment Variables:

    • Copy the example environment file:
      cp .env.example .env
      
    • Edit the newly created .env file and add your API keys:
      WEATHER_API_KEY="YOUR_WEATHER_API_KEY"
      BRAVE_API_KEY="YOUR_BRAVE_API_KEY"
      
  5. Run the Agent:

    • Execute the main script:

      mcp install main.py
      
    • The FastMCP server should be added to Claude Desktop.

      mcp dev main.py
      
    • Debug the MCP Server

✨ Features

  • Note-taking capabilities (add, read, latest, summarize) 📝
  • Current weather fetching ☀️
  • Brave Search integration for news 📰
  • Configuration via .env file 🔑
  • Built with mcp[cli] ⚙️

🤝 Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_sourangshupal_custompymcpserver-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_sourangshupal_custompymcpserver-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_sourangshupal_custompymcpserver-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2bdc590cb28a31ea28a0d6d80c237ea8f5f47c482fe5e3618dc20706e0de2823
MD5 66e512e1f9a58e32d069afa1a666c6d6
BLAKE2b-256 24819fad1f3859dae8c3bf1872399d06425a5af9e4218eaf5d6443ceaabe0ecb

See more details on using hashes here.

File details

Details for the file iflow_mcp_sourangshupal_custompymcpserver-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_sourangshupal_custompymcpserver-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_sourangshupal_custompymcpserver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b120e57e290ce0a038692e84a8b601e0ba08d2fc38ef5b43f27c63a3f554f716
MD5 fe3cd9d0a9d99520ea6065e154c44618
BLAKE2b-256 d5090a193d8f4bde4c03622528f2c34e1cf8a492aa273ab1e40ab1be4006a015

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page