MCP_Projects

MCP_Projects

A model context protocol server example collection that demonstrates tool integration, stdio and HTTP transports, and LangChain adapters for building AI-powered applications.

Category
Visit Server

README

From creating my first MCP server to deploying production-ready applications using Docker and cloud-native architectures.

šŸ¤– What is MCP?

Model Context Protocol (MCP) is a standardized protocol that enables seamless communication between AI models and external tools/systems. It allows:

  • šŸ”Œ Tool Integration: Connect AI models to custom tools and services
  • 🌐 Universal Communication: Standardized way for LLMs to interact with resources
  • šŸ”„ Multi-Transport Support: Use stdio, HTTP, or custom transports
  • šŸ›”ļø Type-Safe: Full type support and validation
  • šŸ“” Remote Execution: Execute tools on remote servers

āœ… Prerequisites

  • Python 3.11+ (MCP requires modern Python)
  • Git for version control
  • Docker (for Chapter 6)
  • Basic Python knowledge (async/await, decorators)
  • API familiarity (helpful for understanding HTTP transport)
  • Terminal/Command Line comfort

The project includes:

  • fastmcp - FastMCP framework for building MCP servers
  • langchain - For integration with language models
  • langchain-mcp-adapters - Bridge between LangChain and MCP
  • mcp - Official MCP specification implementation
  • agentic-terminal - Terminal-based MCP tools

šŸ› ļø Technologies

Technology Purpose Version
FastMCP MCP framework 3.2.4+
Python Programming language 3.12+
Docker Containerization Latest
LangChain LLM framework integration 1.2.17+
Async/Await Concurrent operations Built-in Python
HTTP Network transport Standard
Stdio Local process communication Standard
UV Package management Latest

Setting Up Python Environment

Using uv (recommended - faster than pip):

uv venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

Or using traditional venv:

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

šŸ“š Project Structure

1: Creating Your First MCP Server 🌱

File: 1_Create_MCP/

The fundamentals of MCP by building a basic server:

  • 1_first_mcp_server_stdio.py: Build a simple MCP server using stdio transport

    • Basic tool definition with @mcp.tool() decorator
    • Fetch and process data patterns
    • Running server locally
  • 2_python_client.py: Create a Python client to connect to the MCP server

    • Understand client-server communication
    • Making tool calls programmatically
  • 3_langchain_client.py: Integrate MCP with LangChain

    • Use MCP tools with language models
    • Automatic tool discovery and binding

Key Learnings:

  • FastMCP framework basics
  • Stdio transport protocol
  • Async function handling
  • Tool documentation with docstrings

šŸ—ļø Project Architecture

MCP_Projects/
│
ā”œā”€ā”€ 1_Create_MCP/           # Basics: Stdio-based MCP
│   ā”œā”€ā”€ 1_first_mcp_server_stdio.py
│   ā”œā”€ā”€ 2_first_python_client.py
│   └── 3_langchain_client.py
│
ā”œā”€ā”€ pyproject.toml            # Main project config
ā”œā”€ā”€ package.json              # NPM metadata
ā”œā”€ā”€ main.py                   # Entry point
└── README.md                 # This file

šŸ“š Resources

Official Documentation

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