Skip to main content
Glama

Example MCP Server

Example MCP Server using FastMCP

Prerequisites

  • uv
  • python 3.12

Install

After checking out the repo, run uv venv and uv sync

How to run

on Mac (replace folder name with the root of the repo)

uv run --python /Users/chenjian/Documents/ai_projects/my_mcp_server/.venv/bin/python fastmcp run /Users/chenjian/Documents/ai_projects/my_mcp_server/main.py

or

uv run -p /Users/chenjian/Documents/ai_projects/my_mcp_server/.venv/bin/python fastmcp run /Users/chenjian/Documents/ai_projects/my_mcp_server/main.py

Adding this MCP on IDEs

  • With Claude Desktop and cursor
{ "mcpServers": { "my_mcp_server": { "type": "stdio", "command": "uv", "args": [ "run", "--python", "/Users/chenjian/Documents/ai_projects/.venv/bin/python", "fastmcp", "run", "/Users/chenjian/Documents/ai_projects/my_mcp_server/main.py" ] } } }
  • With Claude Code
claude mcp add uv run --python /Users/chenjian/Documents/ai_projects/my_mcp_server/.venv/bin/python fastmcp run /Users/chenjian/Documents/ai_projects/my_mcp_server/main.py

or

claude mcp add uv run -p /Users/chenjian/Documents/ai_projects/my_mcp_server/.venv/bin/python fastmcp run /Users/chenjian/Documents/ai_projects/my_mcp_server/main.py
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

A demonstration MCP (Model Control Protocol) server built with FastMCP framework that allows integration with Claude Desktop, Cursor, and Claude Code IDEs.

  1. Prerequisites
    1. Install
      1. How to run
        1. on Mac (replace folder name with the root of the repo)
      2. Adding this MCP on IDEs

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
          Last updated -
          48
          4
          TypeScript
          • Apple
        • A
          security
          F
          license
          A
          quality
          A powerful MCP (Model Control Protocol) server that provides tools for manipulating and analyzing Parquet files. This server is designed to work with Claude Desktop and offers four main functionalities:
          Last updated -
          2
          2
          Python
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          A starter template for building Model Context Protocol (MCP) servers, enabling developers to create and add custom tools that can be integrated with Claude Desktop.
          Last updated -
          TypeScript
          • Apple
        • A
          security
          F
          license
          A
          quality
          A server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.
          Last updated -
          1
          1
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Joseph19820124/joseph_mcp_server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server