About example-mcp-server
example-mcp-server is a small Node.js example of an Anthropic MCP server, intended for developers learning to build and configure a server. The README shows how to build it and register it with Claude for Desktop.
Key features
- 01Example MCP server code
- 02Build with npm scripts
- 03Claude for Desktop configuration
Use cases
- 01Study a basic MCP server setup
- 02Build the example JavaScript server
- 03Register a local server in Claude for Desktop
MCP support
This project is example code for an MCP server. The README shows configuring a local server named “time” for Claude for Desktop.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEexample-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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.