mcpField
M
Mcp Server Boilerplate

Mcp Server Boilerplate

Local
github.com/swapnil-saalDeveloper Tools0Updated 74w ago

About Mcp Server Boilerplate

Mcp Server Boilerplate is a Node.js/TypeScript framework for building MCP servers. It registers tools and resources dynamically from files that export a Zod schema and an asynchronous handler.

Key features

  1. 01Dynamic tool and resource registration
  2. 02Zod schemas for definitions
  3. 03Asynchronous handlers
  4. 04Naming-based file discovery

Use cases

  1. 01Start a Node.js MCP server project
  2. 02Add tools as separate source files
  3. 03Define resources with schemas and handlers

MCP support

A framework for building MCP servers, with automatic registration of tools and resources.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server Framework A dynamic Node.js/TypeScript framework for building MCP servers with auto-registration of tools and resources. Setup

Install dependencies: npm install

Copy .env.example to .env and configure variables.

Build and run: npm run build npm start

Adding Tools/Resources

Add new tools to src/server/tools with the naming convention *-tool.ts. Add new resources to src/server/resources with the naming convention *-resource.ts. Each file should export an object with schema (Zod schema) and handler (async function).

License MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.