Skip to main content
Glama

MCP Server Basic Example

by dorisashehi

MCP Server Basic Example

About this app: This is a basic example of a Model Context Protocol (MCP) server implementation that demonstrates core functionality including tools and resources.

Installation

  • Clone this repository

  • git clone https://github.com/dorisashehi/mcp.git

  • cd mcpcrashcourse

  • uv venv .venv\Scripts\activate

  • uv add "mcp[cli]"

  • uv add -r requirements.txt

  • To run the server: uv run mcp dev main.py

  • To run in terminal: uv run server/client.py

alt text

alt text

alt text

alt text

alt text

alt text

alt text

alt text

Technologies

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A basic Model Context Protocol server implementation that demonstrates core MCP functionality including tools and resources. Provides weather alerts through the Weather API and serves as a learning example for MCP development.

  1. Installation
    1. Technologies

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/dorisashehi/mcp'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server