test-mcp-server-js demo

by liyongfen

201 downloads
Not rated
GitHub

About

test-mcp-server-js demo is a minimal MCP server that provides two tools: adding two numbers and querying weather by city. It is designed for simple demonstrations of Model Context Protocol functionality.

Details

Author
liyongfen
Downloads
201
Categories
Developer Tools

- Add two numbers
- Query weather by city

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 test-mcp-server-js demo
    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

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "test-mcp-server-js demo": {
            "test-mcp-server-js": {
                "command": "npx",
                "args": [],
                "env": {
                    "OPENWEATHER_API_KEY": "",
                    "OPENWEATHER_USER_AGENT": "weather-app/1.0"
                }
            }
        }
    }
}

McpServers

{
    "test-mcp-server-js": {
        "command": "npx",
        "args": [],
        "env": {
            "OPENWEATHER_API_KEY": "",
            "OPENWEATHER_USER_AGENT": "weather-app/1.0"
        }
    }
}

包含两个工具:
两数相加
根据城市查询天气

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.