MCP Hub
Back to servers

Intelagent MCP Template

A Model Context Protocol server template designed for building custom servers using the @intelagent/mcp-shared library. It provides boilerplate code and example tools to streamline the development, testing, and deployment of new MCP servers.

glama
Updated
Mar 15, 2026

My MCP Server

A Model Context Protocol server built with @intelagent/mcp-shared.

Quick Start

npm install
npm run build
npm start

Add to Claude Code

Create .mcp.json in your project root:

{
  "mcpServers": {
    "my-mcp-server": {
      "command": "node",
      "args": ["path/to/dist/index.js"]
    }
  }
}

Tools

ToolDescription
reverse_stringReverse a string
word_countCount words and characters
server_infoServer metadata and health check

Development

npm run dev       # Run with tsx (no build needed)
npm run build     # Compile TypeScript
npm test          # Run tests
npm run test:watch # Watch mode

Adding a New Tool

  1. Define types in src/types.ts
  2. Add business logic to a service in src/services/
  3. Define the tool in src/tools/ using the ToolDefinition interface
  4. Wire it up in src/index.ts
  5. Add tests in tests/

See the enrichment MCP for a full production example.

License

MIT

Reviews

No reviews yet

Sign in to write a review

Intelagent MCP Template — MCP Server | MCP Hub