Skip to main content
Glama

Model Context Protocol Demo

by digital-duck

Model Context Protocol (MCP)

Modelcontextprotocol.io

Reference Implementations

FastMCP

A high-level, fast, Pythonic way to build MCP servers and clients

# install pip install fastmcp # verify version fastmcp version FastMCP version: 2.5.2 MCP version: 1.9.2 Python version: 3.13.2 Platform: Linux-6.8.0-60-generic-x86_64-with-glibc2.35 FastMCP root path: ~/anaconda3/envs/mcp/lib/python3.13/site-packages # dev install git clone https://github.com/jlowin/fastmcp.git cd fastmcp uv sync

Fast Agent

A framework with complete, end-to-end tested MCP Feature support including Sampling, which helps create and interact with sophisticated Agents and Workflows in minutes. Both Anthropic (Haiku, Sonnet, Opus) and OpenAI models (gpt-4o/gpt-4.1 family, o1/o3 family) are supported

Demos

FastMCP

A fastmcp tutorial

  • MCP server:
    • mcp_server.py: collection of tools/resources like calculator, trigonometry function, yahoo finance API call
  • MCP clients:
    • mcp_client_simple.py: simple client with rule-based query parsing
    • mcp_client_llm.py: client with LLM-based query parsing
    • mcp_client_llm_resource.py: client with LLM parsing and calling tool/resource (see readme_tool_resource.md for details)

see readme_gemini.md for more details

Setup
conda create -n mcp conda activate mcp git clone https://github.com/digital-duck/mcp_demo.git cd mcp_demo/fastmcp pip install -r requirements.txt # in 1st terminal python mcp_server.py # in 2nd terminal python mcp_client_llm_resource.py # python mcp_client_simple.py # python mcp_client_llm.py
Streamlit MCP app

see fastmcp/README.md

streamlit run st_mcp_rag.py
FastMCP - AWS

To Be Built

see readme_aws.md for more details

MCP SDK

see mcp_sdk sub-folder

To Be Verified

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A demonstration server for the Model Context Protocol (MCP) that exposes calculator and Yahoo Finance tools, allowing LLMs to interpret natural language requests and make tool calls via the MCP standard.

  1. Modelcontextprotocol.io
    1. Reference Implementations
      1. FastMCP
      2. Fast Agent
    2. Demos
      1. FastMCP
      2. MCP SDK

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
      Last updated -
      4
      Python
      MIT License
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.
      Last updated -
      4
      Python
      MIT License
      • Apple
      • Linux
    • A
      security
      A
      license
      A
      quality
      A simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.
      Last updated -
      10
      20
      Python
      MIT License
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server that enables interaction with Yahoo Finance to retrieve stock pricing, company information, and historical financial data through natural language queries.
      Last updated -
      9
      2
      Python
      MIT License

    View all related MCP servers

    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/digital-duck/mcp_demo'

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