MCP Project

by lee926427

106 downloads
Not rated
GitHub

About

MCP Project is a Model Context Protocol server example that demonstrates basic MCP functionality, including a Hello World resource. It is intended for developers learning or prototyping MCP-based integrations with tools like Claude Desktop.

Details

Author
lee926427
Downloads
106
Categories
Other

- Demonstrates a minimal MCP server implementation
- Includes a "Hello World Message" resource
- Integrates with Claude Desktop via claude_desktop_config.json
- Provides a web-based inspector for testing MCP features
- Supports local PostgreSQL database (Docker container)

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 Project
    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

Set up the environment by installing Node.js, running a Docker PostgreSQL container, then building the server with npm install and npm run build. Configure Claude Desktop by creating a claude_desktop_config.json file pointing to the built server. Finally, run npm run inspector and open http://localhost:5173 to test using the MCP Inspector.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "mcp project": {
            "mcp-server-lee926427": {
                "command": "docker",
                "args": [
                    "run",
                    "-d",
                    "--name",
                    "postgres",
                    "-p",
                    "5432:5432",
                    "-e",
                    "POSTGRES_PASSWORD=admin",
                    "postgres"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-lee926427": {
        "command": "docker",
        "args": [
            "run",
            "-d",
            "--name",
            "postgres",
            "-p",
            "5432:5432",
            "-e",
            "POSTGRES_PASSWORD=admin",
            "postgres"
        ]
    }
}

MCP Project

- MCP 介紹 - MCP Server - MCP Client

環境建置

1. 下載 Node.js 2. 下載 docker 然後執行以下命令
docker run -d --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=admin postgres
3. 建立 Server
npm install
npm run build
4. 建立 claude_desktop_config.json
cd ~/Library/Application\ Support/Claude
touch claude_desktop_config.json
5. 將以下內容貼至剛建立的檔案內
{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/your/hello-mcp/build/index.js"]
    }
  }
}
6. 執行 MCP 檢查器
npm run inspector
7. 打開瀏覽器輸入以下網址 http://localhost:5173 ,點擊 Connect 按鈕 8. 右側會出現以下畫面再點選 List Resources,會列出先前ListResourcesRequestSchema 所提供的 Resources 9. 點擊 Hello World Message, 右側會出現 Server 的回應
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.