MCP Server Boilerplate
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 Boilerplateshow me the example function implementation"
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 Boilerplate
A basic Model Context Protocol (MCP) server implementation that can be used as a starting point for building MCP-compatible applications.
Features
Basic MCP server setup with TypeScript
Example function implementation
Graceful shutdown handling
Development and production build configurations
Related MCP server: MCP TypeScript Template
Prerequisites
Node.js (v14 or higher)
npm or yarn
Installation
npm installDevelopment
To run the server in development mode with hot-reload:
npm run devBuilding for Production
To build the project:
npm run buildTo start the production server:
npm startProject Structure
├── src/
│ └── index.ts # Main server implementation
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This fileAdding New MCP Functions
To add new functions to the server:
Define a new function schema using Zod
Create a function implementation following the MCPFunction interface
Add the function to the server configuration
Example:
const myNewFunction: MCPFunction = {
name: 'my_new_function',
description: 'Description of what the function does',
parameters: z.object({
// Define your parameters here
}),
handler: async (params) => {
// Implement your function logic here
return {
// Return your response here
};
}
};License
ISC
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
- echoD
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ns-personal/echo-map'
If you have feedback or need assistance with the MCP directory API, please join our Discord server