MCP Server Example
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Example show me the available resources, tools, and prompts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server Example
This repository contains an implementation of a Model Context Protocol (MCP) server for educational purposes. This code demonstrates how to build a functional MCP server that can integrate with various LLM clients.
To follow the complete tutorial, please refer to the YouTube video tutorial.
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications - it provides a standardized way to connect AI models to different data sources and tools.

Key Benefits
A growing list of pre-built integrations that your LLM can directly plug into
Flexibility to switch between LLM providers and vendors
Best practices for securing your data within your infrastructure
Related MCP server: MCP Tools
Architecture Overview
MCP follows a client-server architecture where a host application can connect to multiple servers:
MCP Hosts: Programs like Claude Desktop, IDEs, or AI tools that want to access data through MCP
MCP Clients: Protocol clients that maintain 1:1 connections with servers
MCP Servers: Lightweight programs that expose specific capabilities through the standardized Model Context Protocol
Data Sources: Both local (files, databases) and remote services (APIs) that MCP servers can access
Core MCP Concepts
MCP servers can provide three main types of capabilities:
Resources: File-like data that can be read by clients (like API responses or file contents)
Tools: Functions that can be called by the LLM (with user approval)
Prompts: Pre-written templates that help users accomplish specific tasks
System Requirements
Python 3.10 or higher
MCP SDK 1.2.0 or higher
uvpackage manager
Getting Started
Installing uv Package Manager
On MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shMake sure to restart your terminal afterwards to ensure that the uv command gets picked up.
Project Setup
Create and initialize the project:
# Create a new directory for our project
uv init mcp-server
cd mcp-server
# Create virtual environment and activate it
uv venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
# Install dependencies
uv add "mcp[cli]" httpxCreate the server implementation file:
touch main.pyRunning the Server
Start the MCP server:
uv run main.pyThe server will start and be ready to accept connections
Connecting to Claude Desktop
Install Claude Desktop from the official website
Configure Claude Desktop to use your MCP server:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-server": {
"command": "uv", # It's better to use the absolute path to the uv command
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/YOUR/mcp-server",
"run",
"main.py"
]
}
}
}Restart Claude Desktop
Troubleshooting
If your server isn't being picked up by Claude Desktop:
Check the configuration file path and permissions
Verify the absolute path in the configuration is correct
Ensure uv is properly installed and accessible
Check Claude Desktop logs for any error messages
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
1 toolget_docsA
Search the latest docs for a given query and library. Supports langchain, openai, and llama-index.
Args: query: The query to search for (e.g. "Chroma DB") library: The library to search in (e.g. "langchain")
Returns: Text from the docs
Inputs: query (required), library (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool in the set, there is no possibility of confusing it with another tool. Its purpose (searching library documentation by query and library name) is clearly stated.
The lone name get_docs follows a clean verb_noun snake_case convention. No inconsistency is possible within a one-tool surface, though it's worth noting 'get' is slightly at odds with the described search behavior.
A single search tool is very thin for a docs-lookup server; agents have no way to list supported libraries or fetch a specific document. One tool earns its place but the surface feels under-scoped rather than well-scoped.
Only a query-based search exists, with no listing of available libraries, no fetch-by-id/page retrieval, and no error or fallback path. Notable gaps will force agents to rely on trial-and-error query strings to reach specific content.
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceAn educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server for integrating with various LLM clients like Claude Desktop.1161MIT
- AlicenseNot gradedqualityCmaintenanceA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.23Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that bridges MCP clients with local LLM services, enabling seamless integration with MCP-compatible applications through standard tools like chat completion, model listing, and health checks.-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to connect to LLM/API services using the Model Context Protocol, providing real-time interaction and tool access. Also offers RESTful API endpoints via FastAPI for programmatic integration with existing systems.Apache 2.0