MCP Server - Model Context Protocol

by maithanhduyan

179 downloads
Not rated
GitHub

About

A backend service providing tools, resources, and prompts for AI models using the Model Context Protocol (MCP).

Details

Author
maithanhduyan
Downloads
179
Categories
Developer Tools, AI, API, Other

- Standardized protocol for AI integrations (JSON‑RPC 2.0)
- Supports multiple transports: stdio and WebSocket
- Provides tools, resources, and prompts to AI models
- Includes sample implementations: Python, TypeScript, Node.js
- Offers a pre‑built MCP Time Server for timezone operations
- Integrates with databases, external APIs, and file systems

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server - Model Context Protocol
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install the SDK (pip install mcp for Python, npm install @modelcontextprotocol/sdk for Node.js/TypeScript), then create a server implementing tool handlers. Configure a client by adding a mcpServers entry in a JSON file with the command and arguments. Test with a simple stdio command like echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | python mcp_server.py.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server - model context protocol": {
            "mcp-server-maithanhduyan": {
                "command": "docker",
                "args": [
                    "build",
                    "-t",
                    "mcp-time-server",
                    "."
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-maithanhduyan": {
        "command": "docker",
        "args": [
            "build",
            "-t",
            "mcp-time-server",
            "."
        ]
    }
}

MCP Server - Model Context Protocol

📖 Giới thiệu về MCP Server

Model Context Protocol (MCP) là một giao thức mở được phát triển bởi Anthropic để chuẩn hóa cách các AI models tương tác với các nguồn dữ liệu và công cụ bên ngoài. MCP Server là một thành phần quan trọng trong hệ sinh thái này, đóng vai trò là cầu nối giữa AI models và các dịch vụ, cơ sở dữ liệu, API khác nhau.

🔑 Khái niệm cốt lõi

- MCP Server: Là một dịch vụ backend cung cấp các công cụ (tools), tài nguyên (resources) và prompts cho AI models
- Giao thức chuẩn: Sử dụng JSON-RPC 2.0 để đảm bảo tương thích giữa các hệ thống
- Kiến trúc Client-Server: AI applications (clients) giao tiếp với MCP servers thông qua WebSocket hoặc stdio

🌟 Sử dụng trong thực tế

1. Tích hợp Cơ sở dữ liệu

AI Model ↔ MCP Server ↔ Database (MySQL, PostgreSQL, MongoDB)
- Cho phép AI truy vấn và phân tích dữ liệu trực tiếp - Tự động tạo reports và insights từ database

2. Kết nối API bên ngoài

AI Model ↔ MCP Server ↔ External APIs (Weather, Stock, Social Media)
- Lấy dữ liệu real-time từ các dịch vụ web - Thực hiện các tác vụ automation

3. Quản lý File System

AI Model ↔ MCP Server ↔ Local/Cloud Storage
- Đọc, ghi, và xử lý files - Backup và sync dữ liệu

🚀 Use Cases phổ biến

1. Business Intelligence & Analytics

- Mô tả: Tự động phân tích dữ liệu kinh doanh - Ví dụ: Tạo báo cáo doanh thu hàng tháng từ database sales ```python
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.