MCP Starter Server
Click on "Deploy 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 Starter Serveradd a tool that returns the current time"
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 Starter Server
A TypeScript starter template for building Model Context Protocol (MCP) servers.
Quick Start
Prerequisites
Node.js 18+
npm or yarn
Installation
npm installBuild
npm run buildRun
npm run devRelated MCP server: MCP TypeScript Template
Architecture
src/index.ts - Main server file with tool definitions
tsconfig.json - TypeScript configuration
package.json - Dependencies and scripts
Adding Tools
Edit src/index.ts to add new tools:
Define a Zod schema for input validation
Add the tool to the
toolsarray with name, description, and inputSchemaHandle the tool in the CallToolRequestSchema handler
Example:
const MyToolSchema = z.object({
param1: z.string().describe("Description"),
});
const tools: Tool[] = [
{
name: "my_tool",
description: "What this tool does",
inputSchema: {
type: "object",
properties: {
param1: {
type: "string",
description: "Description",
},
},
required: ["param1"],
},
},
];
server.setRequestHandler(CallToolRequestSchema, async (request) => {
const { name, arguments: args } = request;
if (name === "my_tool") {
const parsed = MyToolSchema.parse(args);
return {
content: [
{
type: "text",
text: `Result: ${parsed.param1}`,
},
],
};
}
});Testing
Use the MCP Inspector to test your server:
npx @modelcontextprotocol/inspector node build/index.jsNext Steps
Add your first custom tool
Connect to an external API
Test with MCP Inspector
Deploy to production
Resources
This server cannot be deployed
Maintenance
Related MCP Connectors
Kickstart development with a customizable TypeScript template featuring sample tools for greeting,…
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA clean, reusable TypeScript boilerplate for building Model Context Protocol servers with support for custom tools and resources.2 npm-
- AlicenseNot gradedqualityAmaintenanceA starter template for building remote Model Context Protocol servers using TypeScript, providing modern tooling and best practices while leveraging the MCP TypeScript SDK.56MIT
- FlicenseNot gradedqualityDmaintenanceA starter template designed to jumpstart the development of Model Context Protocol (MCP) servers using TypeScript. It provides pre-configured examples for creating tools and resources, along with integration guides for MCP clients like Cursor.-
- FlicenseBqualityDmaintenanceA starter template for building Model Context Protocol (MCP) servers using Node.js and TypeScript. It provides sample implementations for tools, resources, and prompts, designed to help developers test and integrate MCP capabilities into clients like Codex.2-