mcp-boilerplates
v0.1.0
Published
This is a minimal MCP server using Bun + TypeScript so you can quickly understand the use case.
Readme
Basic MCP Server with Bun
This is a minimal MCP server using Bun + TypeScript so you can quickly understand the use case.
What it includes
echotool: returns whatever message you sendsumtool: adds two numbersword_counttool: returns character/word/line countshello_promptprompt: tiny prompt template example
Run locally
bun install
bun run startFor development mode (auto-reload):
bun run devConnect in Cursor MCP
Add this to your MCP config (or equivalent JSON):
{
"mcpServers": {
"basic-bun-mcp": {
"command": "bun",
"args": ["run", "C:/Users/sunda/OneDrive/Documents/mcp-boilerplates/src/index.ts"]
}
}
}If your environment resolves from project root, you can also use:
{
"mcpServers": {
"basic-bun-mcp": {
"command": "bun",
"args": ["run", "src/index.ts"]
}
}
}Example use
- Call
echowith{ "message": "Hello MCP" } - Call
sumwith{ "a": 2, "b": 5 } - Call
word_countwith{ "text": "Hello\nMCP world" } - Use
hello_promptwith{ "name": "Sunda" }
