mcp-starter
A super simple Starter to build your own MCP Server
claude mcp add --transport stdio instructa-mcp-starter node ./bin/cli.mjs --http --port 4200
How to use
MCP Server Starter provides a minimal, extensible foundation to run local tools using the Model Context Protocol (MCP). It includes example configurations that demonstrate stdio (local), and HTTP-based transport workflows, with Cursor and other MCP-compatible clients. The starter ships with a TypeScript-based structure and a ready-made CLI entry point (bin/cli.mjs) that can be extended to integrate with tools, AI assistants, or custom workflows. Use the stdio setup for local development and testing, and the HTTP transport to expose an MCP server over the network for remote clients or tooling integrations.
To use the stdio workflow, configure a server entry that runs the CLI in stdio mode. For example, a local development config uses node ./bin/cli.mjs --stdio, which allows a local client (like Cursor) to communicate over standard input/output. For remote usage, you can run the server in HTTP mode (node ./bin/cli.mjs --http --port 4200) and point your MCP client to http://localhost:4200/mcp. The starter also demonstrates how to publish and consume MCP endpoints with npx or your own package name, enabling a streamlined workflow when distributing your server package.
How to install
Prerequisites
- Node.js (and npm/yarn) installed on your development machine
- A compatible MCP client (e.g., Cursor) for testing
- Clone the repository or install the npm package
- If youβre starting from the repository: git clone <repository-url> cd mcp-starter npm install
- Install dependencies
- Using npm: npm install
- Using yarn: yarn install
- Run the server in stdio mode for local testing
- Command: node bin/cli.mjs --stdio
- Run the server in HTTP mode for remote usage
- Command: node bin/cli.mjs --http --port 4200
- Or use the provided npm script if available in your project: npm run dev-http
- Verify the MCP endpoint
- For stdio, connect via your MCP client to the local process.
- For HTTP, connect to http://localhost:4200/mcp with your MCP client.
Additional notes
Tips and notes:
- The starter provides examples for both stdio and HTTP transports. Choose the transport that matches your workflow.
- Cursor integration is demonstrated via example configuration and a .cursor/mcp.json setup path in the repository.
- When running HTTP, ensure the port you choose is open and not blocked by a firewall.
- You can customize the server by editing bin/cli.mjs or by adding new mcpServers entries in your local MCP config file.
- If you plan to publish your own MCP server package, you can follow the examples shown in the README for how to reference npm/npx usage in configurations.
- The README mentions that SSE transport is deprecated; prefer stdio or HTTP for new implementations.
Related MCP Servers
mcp
π€ A Model Context Protocol (MCP) library for use with Agentic chat bots
CanvasMCPClient
Canvas MCP Client is an open-source, self-hostable dashboard application built around an infinite, zoomable, and pannable canvas. It provides a unified interface for interacting with multiple MCP (Model Context Protocol) servers through a flexible, widget-based system.
mcp -amazon
ππ¦ Unofficial Amazon Model Context Protocol Server (MCP) - Search products and purchase directly from Claude AI! β¨
docmole
Dig through any documentation with AI - MCP server for Claude, Cursor, and other AI assistants
obsidian
MCP server for Obsidian vault management - enables Claude and other AI assistants to read, write, search, and organize your notes
driflyte
The Driflyte MCP Server exposes tools that allow AI assistants to query and retrieve topic-specific knowledge from recursively crawled and indexed web pages.