a-polishchuk/mcp-example-stdio
3.1
If you are the rightful owner of mcp-example-stdio and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository demonstrates a simple MCP (Model Context Protocol) server implementation that communicates over stdio using TypeScript.
MCP Example: Server over stdio
This repository demonstrates a simple MCP (Model Context Protocol) server implementation that communicates over stdio using TypeScript.
Features
- Example MCP server using stdio
- Written in TypeScript
- Easily extensible for custom MCP commands
Prerequisites
- Node.js (v18 or newer recommended)
- npm
Setup
-
Install dependencies:
npm install
-
Go to Cursor Settings -> MCP -> Add new MCP:
{ "mcpServers": { "Yes or No MCP": { "command": "npx", "args": [ "-y", "tsx", "<absolute_path_to>/stdio-example.ts", "--stdio" ] } } }
Replace
<absolute_path_to>
with the absolute path to yourstdio-example.ts
file. -
Use MCP server: Ask LLM in Cursor some question and add "yes or no" in the end, Cursor will call MCP tool.
File Overview
stdio-example.ts
: Main MCP server implementation.copy-this-to-mcp-json.json
: Example configuration for MCP server setup.
License
MIT