MCP Server Template
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Server Template
Minimal template for building Model Context Protocol (MCP) servers with Bun and TypeScript.
Quick Start
bun install
bun run dev # Development
bun run start # ProductionConfigure in Cursor
{
"mcpServers": {
"my-mcp-server": {
"command": "bun",
"args": ["/path/to/your/project/index.ts"],
"cwd": "/path/to/your/project"
}
}
}Related MCP server: MCP Server Starter
Project Structure
├── index.ts # Server entry point
├── schema.ts # State schema (Zod)
├── config.ts # Configuration
├── state.yaml # State file
├── tools/ # Tool handlers
└── utils/ # State & logging utilitiesFeatures
Schema-based state validation (Zod)
YAML state persistence
Tool usage logging
Deep merge for state updates
Usage
Customize State
Update
schema.tsto match your state structureState is automatically validated on read/write
Add Tools
Create
tools/your-tool.tsfollowingexample-tool.tspatternRegister in
index.ts:registerYourTool(server);
State Operations
import { getState, updateState, saveState } from "./utils/state.ts";
import { type State } from "./schema.ts";
const state = await getState();
await updateState({ version: "1.0.1" }); // Deep merge
await saveState(newState); // Full replacementLogging
import { log } from "./utils/logger.ts";
await log("info", "tool_name", request, response);See TEMPLATE.md for detailed examples.
This server cannot be deployed
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Minimal chat-first app with durable threads, actions, and the app-agent loop
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA modern, lightning-fast starter template for building Model Context Protocol applications with Bun, enabling developers to create MCP servers with TypeScript support, validation, and environment configuration.10 npm2MIT
- AlicenseBqualityDmaintenanceA minimal TypeScript starter template for building Model Context Protocol (MCP) servers with auto-loading architecture for tools, resources, and prompts. Includes code generators, dual transport support (stdio/HTTP), and production-ready structure.3MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA minimal, production-ready TypeScript template for building Model Context Protocol servers with auto-loading architecture for tools, resources, and prompts, supporting both stdio and HTTP transports.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server template designed for building structured tools, prompts, and resources with built-in support for HTTP and STDIO transports. It provides a standardized framework for developers to create and deploy AI-driven services using TypeScript and Zod schema validation.5 npm-