MCP.so
Sign In
Servers

example-mcp-server

@megmogmog1965

Example code for Anthropic MCP server.

Overview

What is example-mcp-server?

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.

How to use example-mcp-server?

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.

Key features of example-mcp-server?

Use cases of example-mcp-server?

FAQ from example-mcp-server

What does this server do?

It is example code for an Anthropic MCP server, intended as a starting point for developers learning to build MCP servers.

How do I build the server?

Run npm install and then npm run build in the project directory.

How do I use it with Claude for Desktop?

Add the server to your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json with the command pointing to Node.js and the built index.js.

What is the server name used in the configuration?

The example configuration registers the server as "time".

Does the server require any runtime dependencies?

Yes, it requires Node.js and the npm packages installed via npm install.

More from Other