MCP Server - Model Context Protocol

by maithanhduyan

421 downloads Not rated yet MIT

About

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

Details

License
MIT

Explore

- Context awareness: Hiểu context tốt hơn từ previous conversations
- Learning capabilities: Tự học và cải thiện performance
- Multi-modal support: Xử lý text, images, audio, video

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.

time

Thời gian theo định dạng HH:MM

source_timezone

Múi giờ nguồn

target_timezone

Múi giờ đích

tools = [
{
"name": "query_sales_db",
"description": "Query sales database",
"parameters": {"query": "string"}
}
]
``

1. get_current_time
- Lấy thời gian hiện tại
- Parameter:
timezone (IANA timezone name)
- Ví dụ:
Asia/Ho_Chi_Minh, America/New_York, Europe/London

2. convert_time
- Chuyển đổi thời gian giữa các múi giờ
- Parameters:
-
time: Thời gian theo định dạng HH:MM
-
source_timezone: Múi giờ nguồn
-
target_timezone`: Múi giờ đích

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",
            "."
        ]
    }
}

📖 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.