example-mcp-server

megmogmog1965/example-mcp-server

3.2

If you are the rightful owner of example-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Example code for Anthropic MCP server.

example-mcp-server

Example code for Anthropic MCP server.

https://modelcontextprotocol.io/quickstart/server

How to build

npm install
npm run build

Run on Claude for Desktop

To use this server with Claude Desktop, you need to configure it in your Claude Desktop configuration file. This file is located at:

~/Library/Application Support/Claude/claude_desktop_config.json

Example configuration:

{
  "mcpServers": {
    "time": {
      "command": "/path/to/node",
      "args": [
        "/path/to/example-mcp-server/build/index.js"
      ]
    }
  }
}

This configuration registers an MCP server named "time" that runs the built JavaScript code from this repository using Node.js.