MCP Example Simple Server

MCP Example Simple Server

A basic example MCP server built with the FastMCP framework for demonstration and learning purposes. Provides a starting point for developers to understand MCP server implementation.

Category
Visit Server

README

MCP Example Simple Server

This is a simple example of a server built with the FastMCP framework.

Setup and Installation

These instructions will guide you through setting up the project environment and installing the necessary dependencies.

  1. Create and Activate a Virtual Environment First, create a Python virtual environment to isolate the project's dependencies. This is a one-time setup step.

Create the virtual environment in a directory named 'venv'

python3 -m venv venv

Activate the environment

source venv/bin/activate

Your terminal prompt should now be prefixed with (venv).

  1. Install Dependencies With the virtual environment active, install the required Python packages using uv (or pip) and the requirements.txt file.

Install all dependencies listed in requirements.txt

uv pip install -r requirements.txt

Running the Server You can run the server directly to ensure it starts up.

Make sure your virtual environment is still active.

Use the uv run command to start the server:

uv run server.py

You should see output indicating the server has started on http://localhost:8000. You can stop it by pressing CTRL+C.

Testing with MCP Inspector The recommended way to test and debug the server is with the official MCP Inspector. The inspector will launch your server for you and provide a web-based UI to interact with it.

Stop the server if it is currently running (press CTRL+C in its terminal).

In your terminal (with the venv still active), run the following command:

npx @modelcontextprotocol/inspector uv run server.py

This command does two things:

npx ...: Downloads and runs the MCP Inspector tool.

uv run server.py: Tells the inspector how to start your Python server.

The terminal will display a message like: 🔍 MCP Inspector is up and running at http://127.0.0.1:6274

Open that URL (http://1227.0.0.1:6274) in your web browser.

In the Inspector UI, click the "▶︎ Connect" button to connect to your server and begin testing its tools and resources.

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