- example-mcp-server
Content
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.