MCP Server Template
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Templateadd a tool to greet the user by name"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 Boilerplate
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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xstyles/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server