Build Custom MCP Servers
by sanjaydubey31
This project demonstrates a simple MCP server built using the MCP `mcp[cli]` Python SDK. It provides tools for note management, weather information, and news search, utilizing API keys stored in a `.env` file.
Last updated: N/A
What is Build Custom MCP Servers?
This is a custom MCP server built with Python that integrates note-taking, weather information, and news search functionalities. It leverages external APIs for weather and news data and stores API keys in a .env file for secure configuration.
How to use Build Custom MCP Servers?
To use this server, clone the repository, set up a virtual environment, install dependencies using uv or pip, configure the .env file with your API keys, and run the server using mcp install main.py or mcp dev main.py to debug.
Key features of Build Custom MCP Servers
Note-taking capabilities (add, read, latest, summarize)
Current weather fetching
Brave Search integration for news
Configuration via
.envfileBuilt with
mcp[cli]
Use cases of Build Custom MCP Servers
Quickly jotting down and retrieving notes
Checking the current weather for a specific city
Searching for news articles on a particular topic
Integrating various services into a single MCP server
Experimenting with the MCP
mcp[cli]Python SDK
FAQ from Build Custom MCP Servers
What is MCP?
What is MCP?
MCP refers to the framework used to build this server.
What API keys do I need?
What API keys do I need?
You need a WeatherAPI.com API key and a Brave Search API key.
Where do I put my API keys?
Where do I put my API keys?
You should put your API keys in the .env file.
How do I install the dependencies?
How do I install the dependencies?
You can install the dependencies using uv sync or pip install -r requirements.txt.
How do I run the server?
How do I run the server?
You can run the server using mcp install main.py or mcp dev main.py.