example-mcp-server

by megmogmog1965

138 downloads
Not rated
GitHub

About

An example MCP (Model Context Protocol) server for Anthropic, demonstrating how to build and configure a minimal server that can be used with Claude Desktop.

Details

Author
megmogmog1965
Downloads
138
Categories
Other

Install dependencies with npm install, then build with npm run build. Configure the server in Claude Desktop’s configuration file (claude_desktop_config.json) by specifying the path to the built index.js and the Node.js executable.

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.

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.