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 installGo 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
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A simple MCP server implementation in TypeScript that communicates over stdio, allowing users to ask questions that end with 'yes or no' to trigger the MCP tool in Cursor.
Related MCP Servers
- AsecurityAlicenseAqualityThis TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.Last updated -0MIT License
- AsecurityFlicenseAqualityA TypeScript-based MCP server that implements a simple notes system, enabling users to manage text notes with creation and summarization functionalities through structured prompts.
- AsecurityFlicenseAqualityA TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.Last updated -25047
- -securityFlicense-qualityA TypeScript-based server project that can be integrated with Cursor IDE as an MCP (Model Control Protocol) server, enabling enhanced development capabilities.Last updated -139