Local Mcp Server Tutorial
@7nohe
About Local Mcp Server Tutorial
ローカルMCPサーバー(stdio)を作成するためのチュートリアルです。
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"local-mcp-server-tutorial": {
"command": "npx",
"args": [
"giget@latest",
"gh:7nohe/local-mcp-server-tutorial",
"my-mcp-server"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Local Mcp Server Tutorial?
A tutorial for creating a local MCP (Model Context Protocol) server. It guides users through building a Node.js/TypeScript MCP server with resources, prompts, and tools, and integrating it with MCP clients like Claude Desktop.
How to use Local Mcp Server Tutorial?
Follow the tutorial steps: initialize a project using npx giget, install dependencies (@modelcontextprotocol/sdk, zod), implement the server code, build with npm run build, and run with ./dist/index.js. Debug using the MCP Inspector and configure Claude Desktop to connect.
Key features of Local Mcp Server Tutorial
- Step-by-step setup for a local MCP server.
- Implements static and dynamic resources.
- Implements prompts for language translation.
- Implements a BMI calculation tool.
- Covers debugging with MCP Inspector.
- Guides publishing to npm.
Use cases of Local Mcp Server Tutorial
- Learning to build a custom MCP server from scratch.
- Creating a local MCP server for personal tools or automation.
- Prototyping MCP resources and tools for Claude Desktop.
FAQ from Local Mcp Server Tutorial
What prerequisites are needed?
Node.js (v22) and an MCP client like Claude Desktop.
How do I debug the server?
Use the MCP Inspector: run npx @modelcontextprotocol/inspector ./dist/index.js and open http://127.0.0.1:6274.
How do I connect the server to Claude Desktop?
Edit claude_desktop_config.json to point to the server’s executable path.
How do I publish the server?
Run npm login and npm publish. Ensure the package name follows @username/package convention.
What transport does the server use?
The server uses StdioServerTransport for communication over standard input/output.
Frequently asked questions
What prerequisites are needed?
Node.js (v22) and an MCP client like Claude Desktop.
How do I debug the server?
Use the MCP Inspector: run `npx @modelcontextprotocol/inspector ./dist/index.js` and open http://127.0.0.1:6274.
How do I connect the server to Claude Desktop?
Edit `claude_desktop_config.json` to point to the server’s executable path.
How do I publish the server?
Run `npm login` and `npm publish`. Ensure the package name follows `@username/package` convention.
What transport does the server use?
The server uses `StdioServerTransport` for communication over standard input/output.
Basic information
More Other MCP servers

Glasswarp
GlasswarpSee and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
Nginx UI
0xJackyYet another WebUI for Nginx
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
Comments