mcp-starter
A start template for a typescript mcp server
Documentation
MCP Starter Server
A minimal ModelContextProtocol server template for building AI assistant tools. This starter provides a basic structure for creating MCP tools that can be used with AI assistants like Claude.
Features
- Simple "hello world" tool example
- TypeScript + esbuild setup
- Development tools preconfigured
Setup to build and run with Claude
1. Download and install Claude desktop app from claude.ai/download
2. Clone the repo, install dependencies and build:
npm install
npm run build3. Configure Claude to use this MCP server. If this is your first MCP server, in the root of this project run:
echo '{
"mcpServers": {
"mcp-starter": {
"command": "node",
"args": ["'$PWD'/dist/index.cjs"]
}
}
}' > ~/Library/Application\ Support/Claude/claude_desktop_config.jsonThis should result in an entry in your `claude_desktop_config.json` like:
"mcpServers": {
"mcp-starter": {
"command": "node",
"args": ["/Users/matt/code/mcp-starter/dist/index.cjs"]
}
}If you have existing MCP servers, add the `mcp-starter` block to your existing config. It's an important detail that the `args` is the path to `/mcp-starter/dist/index.cjs`.
4. Restart Claude Desktop.
5. Look for the hammer icon with the number of available tools in Claude's interface to confirm the server is running.
6. If this is all working, you should be able to develop your MCP server using `npm run dev` and test it in Claude. You'll need to restart Claude each time to restart the MCP server.
Developing with Inspector
For development and debugging purposes, you can use the MCP Inspector tool. The Inspector provides a visual interface for testing and monitoring MCP server interactions.
Visit the Inspector documentation for detailed setup instructions.
To test locally with Inspector:
npm run inspectTo build on file changes run:
npm run watchOr run both the watcher and inspector:
npm run devPublishing
Once you're ready to distribute your server, it's simple!
1. Set up an NPM account.
2. Run `npm publish`. This will publish a package using the project name in `package.json`
3. Once published, others can install the server with a config entry like:
"mcpServers": {
"": {
"command": "npx",
"args": [""]
}
}Available Tools
The server provides:
- `hello_tool`: A simple example tool that takes a name parameter and returns a greeting
Creating New Tools
To add new tools:
1. Define the tool schema in `index.ts`
2. Add it to the tools array in the `ListToolsRequestSchema` handler
3. Add the implementation in the `CallToolRequestSchema` handler
See the `hello_tool` implementation as an example.
Frequently asked questions
What is mcp-starter?
mcp-starter is A start template for a typescript mcp server
How do I install mcp-starter?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-starter open source?
Yes — it is hosted on GitHub at https://github.com/MatthewDailey/mcp-starter and has 11 stars.
Related MCP tools
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic TypeScript-based implementation.
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices) TypeScript-based implementation.
Https://github.com/user-attachments/assets/364b6705-14d4-4e6d-bea7-fb9f12664fab for the Model Context Protocol. Enhance AI assistants with powerful integrations
MCP server that provides tools and resources for interacting with n8n API TypeScript-based implementation. Trusted by 1400+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP