Test MCP Server
A demonstration MCP server project showcasing both local and remote server setups using FastMCP, with examples of deploying to FastMCP Cloud and managing dependencies through uv.
README
test_mcp_server
A simple MCP (Model Context Protocol) server project demonstrating both local and remote MCP server setups using FastMCP, LangChain, and uv.
Requirements
- Python 3.9+
pipuv
First-Time Setup
1. Install uv
pip install uv
2. Navigate to the project directory
cd test_mcp_server
3. Initialize the project with uv
uv init .
4. Add FastMCP
uv add fastmcp
Local MCP Server Setup
1. Create the local server file
Create a file named:
local_server.py
This file contains your MCP server implementation.
2. Add required dependencies
uv add langchain langchain-openai langchain_mcp_adapters
3. Create the client
Create a client file:
client.py
4. Run the local server using STDIO
The local MCP server communicates via STDIO.
Run the client:
uv run client.py
Remote MCP Server Setup
1. Create MCP tools
- Define your MCP tools for the remote server
- Ensure they are compatible with FastMCP Cloud
2. Deploy to FastMCP Cloud
- Deploy the server to FastMCP Cloud
- Obtain the remote server configuration
3. Update configuration
- Add the remote MCP server configuration to your config file
- Replace the local STDIO setup with the remote server endpoint
4. Run the client with the remote server
uv run client.py
Notes
- Local server uses STDIO for communication
- Remote server runs on FastMCP Cloud
uvhandles dependency management and execution- Same client can be used for both local and remote servers by changing configuration
Remote MCP Server Deployment (FastMCP Cloud)
GitHub Access
- GitHub repository access was granted to FastMCP Cloud
- FastMCP Cloud pulls the source code directly from the repository
Deployment Steps
- Created MCP tools for the remote server
- Connected the GitHub repository to FastMCP Cloud
- FastMCP Cloud executed the server using:
main.py
- The server was successfully deployed as a remote MCP server
Client Configuration
- Updated the MCP configuration file to point to the remote FastMCP Cloud endpoint
- Reused the same
client.pyfor both local and remote execution
Running the Client
uv run client.py
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
E2B
Using MCP to run code via e2b.