what is Mcp Server Basic Sample?
Mcp Server Basic Sample is a foundational project designed to help developers set up and run a Model Context Protocol (MCP) server application.
how to use Mcp Server Basic Sample?
To use the Mcp Server Basic Sample, follow these steps:
- Install the necessary packages using
pnpm install
. - Build the application with
pnpm build
. - Start the MCP Inspector with
pnpm start
and inspect usingpnpm inspect
.
key features of Mcp Server Basic Sample?
- Easy setup for MCP server applications.
- Integration with Claude for Desktop for enhanced functionality.
- Detailed configuration options for server commands and arguments.
use cases of Mcp Server Basic Sample?
- Setting up a basic MCP server for development and testing.
- Integrating with Claude for Desktop to manage server commands.
- Learning how to implement and configure MCP servers using TypeScript.
FAQ from Mcp Server Basic Sample?
- What is the purpose of this project?
The project serves as a basic template for developers to create and manage MCP servers.
- Is there any documentation available?
Yes! Comprehensive resources and examples are provided in the project documentation.
- Can I use this project for production?
This sample is primarily for development and learning purposes; further customization may be needed for production use.
Mcp Server Basic Sample
Prepare mcp server app
1. Install packages
pnpm install
2. Build
pnpm build
Mcp Inspector
Inspector - Model Context Protocol
pnpm start
pnpm inspect
Claude for Desktop
Download Claude for Desktop
Set Configure Claude for Desktop
Open the config file in VSCode.
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
/Users/[user]/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"RandomNumber": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"]
}
}
}
If you use mise.
$ mise which node
/Users/[user]/.local/share/mise/installs/node/22.14.0/bin/node
/Users/[user]/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"RandomNumber": {
"command": "/Users/[user]/.local/share/mise/installs/node/22.14.0/bin/node",
"args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"]
}
}
}
reference: https://github.com/modelcontextprotocol/servers/issues/64#issuecomment-2503152420
Resources
