Sponsored by Deepsite.site

MCP Hub Documentation

Created By
reddy-sh8 months ago
MCP Hub is a comprehensive framework for building, managing, and deploying Model Context Protocol (MCP) clients and servers. It provides tools and configurations to enable seamless integration and execution of end-to-end MCP workflows.
Content

MCP Hub Documentation

Overview

MCP Hub is a framework for creating and managing Model Context Protocol (MCP) servers and clients. It leverages the uv tool for fast package installation and configuration management.

Why Use UV?

UV simplifies package management and configuration with blazing-fast commands. Learn a few commands to get started, and you're good to go:

  • Initialize a project:
    uv init
    
  • Sync Python version and dependencies:
    uv sync
    

For more details, visit the UV GitHub repository.

Motivation

To understand the basics of MCP and get started with creating MCP servers, refer to the MCP Quickstart Server Guide.

Getting Started

How to Create a Sample MCP Server

  1. Create a New Project Directory

    uv init XYZ
    cd XYZ
    
  2. Set Up a Virtual Environment

    uv venv
    source .venv/bin/activate
    
  3. Install Dependencies

    uv add "mcp[cli]" httpx
    
  4. Create the Server File

    touch XYZ.py
    

How to Run the MCP Server

To run the server, use the following command:

uv run XYZ.py

Example: Creating a New XYZ Server

Follow the steps outlined above to create and run a new XYZ server. Replace XYZ with your desired project name.

Recent Updates

Notebooks Directory

The notebooks/ directory has been added to the project. It includes configuration files and scripts for setting up and running JupyterHub. Key files include:

  • jupyterhub_config.py: Configuration for JupyterHub.
  • start_jupyterhub.sh: Script to start the JupyterHub server.

CIFAR-10 Dataset Downloader

A new script has been added under ai/computer-vision/09_datasets/ to download the CIFAR-10 dataset using TensorFlow/Keras. To use it, run:

python ai/computer-vision/09_datasets/download_cifar10.py

This script downloads the dataset and prints a confirmation message.

AI Folder

The ai/ folder contains various subdirectories and scripts related to computer vision and artificial intelligence. Below is an overview of its structure and contents:

Subdirectories and Files

01_image_handling

  • basic_manipulations.py: Basic image manipulation techniques.
  • blue_image.png: Sample image for testing.
  • hello_cv.py: A simple script to demonstrate computer vision basics.
  • image_representation.py: Explains image representation in computer vision.
  • read_display_save.py: Script to read, display, and save images.
  • README.md: Documentation for this subdirectory.

02_image_preprocessing

  • augmentation.py: Image augmentation techniques.
  • normalization.py: Image normalization methods.

03_feature_extraction

  • hog_extraction.py: Extracts Histogram of Oriented Gradients (HOG) features.
  • sift_surf_extraction.py: Demonstrates SIFT and SURF feature extraction.

04_basic_ml_concepts

  • hog_svm_classifier.py: Implements a classifier using HOG features and SVM.

05_deep_learning_cnn

  • cnn_architecture.py: Defines a Convolutional Neural Network (CNN) architecture.

06_image_classification

  • train_classifier.py: Script to train an image classifier.

07_object_detection

  • basic_object_detection.py: Demonstrates basic object detection techniques.

08_image_segmentation

  • basic_segmentation.py: Explains basic image segmentation methods.

09_datasets

  • download_cifar10.py: Script to download the CIFAR-10 dataset.

10_utils

  • image_utils.py: Utility functions for image processing.

Additional Files

  • main.py: Entry point for AI-related scripts.
  • pyproject.toml: Configuration file for the project.
  • README.md: Documentation for the ai/ folder.
  • run.sh: Shell script to execute AI-related tasks.
  • uv.lock: Lock file for dependencies.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
CursorThe AI Code Editor
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.