Skip to main content
Glama

MCP-Template

A Python starter project for building an MCP (Model Context Protocol) server. It includes a server, a client pool to manage multiple connections safely, and a Jupyter notebook demonstrating how to use the tools and communicate with the AI. The project is structured to make it easy to add your own tools, prompts, and workflows. To get started, clone the repository, install dependencies, run the server, and use the notebook to test and interact with your MCP setup.

Prerequisites:

  • Create a virtual environment (conda or python) and activate it

    # Python Virtual Environment (Create)
    python -m venv .venv
    
    # Activating (Windows)
    .\.venv\Scripts\activate
    
    # Activating (Linux/MacOS)
    source .venv/bin/activate
    # Conda Virtual Environment (Create)
    conda create -n myenv python=3.11
    
    # Activating 
    conda activate myenv
  • pip install the requirements (in the environment)

    pip install -r requirements.txt
  • Make sure you have an Azure client (or OpenAI; you may need to update the code if new fields are required). Create a .env file in the project root directory with the following fields:

    AZURE_API_KEY="Your API Key"
    ENDPOINT="Your Endpoint"
    VERSION="Your OpenAI Version"
    MODEL="Your Azure OpenAI Model"

Sources

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    A starter template for building MCP servers that can integrate with Claude, Cursor, or other MCP-compatible AI assistants to create custom tools, resource providers, and prompt templates.
    2
    0
  • F
    license
    Not graded
    quality
    D
    maintenance
    A basic MCP server template that provides a foundation for building custom tools, resources, and prompts. Serves as a starting point for developers to create their own MCP server functionality.
  • F
    license
    Not graded
    quality
    D
    maintenance
    A foundational template for building MCP servers in Python using Streamable HTTP transport. Provides example implementations of tools, resources, and prompts to help developers create custom MCP integrations for AI assistants.
  • F
    license
    C
    quality
    D
    maintenance
    A starter template for building custom MCP servers with example tools, TypeScript support, and multi-client installation scripts for Claude Desktop, Cursor, and other MCP-compatible AI assistants.
    2
    16
    84

Latest Blog Posts

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/BJW101102/MCP-Template'

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