Model Context Protocol Demo

Model Context Protocol Demo

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.

Category
Visit Server

README

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 - Gemini

A fastmcp tutorial using Gemini.

  • 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
pip install -r requirements.txt

# in 1st terminal
python mcp_server.py

# in 2nd terminal
# python mcp_client_simple.py
python mcp_client_llm.py
# python mcp_client_llm_resource.py

Streamlit MCP app

streamlit run st_mcp_app.py

FastMCP - AWS

see readme_aws.md for more details

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured