Skip to main content
Glama
v4lheru

generic-mcp-server

by v4lheru

Generic MCP Server Template

A flexible template for creating Model Context Protocol (MCP) servers using the official TypeScript SDK.

What is MCP?

The Model Context Protocol (MCP) enables communication between AI assistants and locally running servers that provide additional tools and resources.

Related MCP server: Swagger MCP

Features

  • Official SDK: Built with @modelcontextprotocol/sdk

  • Type Safety: Full TypeScript support with Zod validation

  • Stdio Transport: Standard transport for local agent integration

  • Modular Design: Easy to add new tools and resources

Getting Started

Prerequisites

  • Node.js (v16 or later)

  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/v4lheru/generic-mcp-template.git
    cd generic-mcp-server
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

Usage

To run the server locally (for testing or development):

npm run start

Note: This server uses stdio transport, so it expects to communicate via standard input/output. It will not start an HTTP server.

Adding to Claude Desktop

  1. Open Claude Desktop config (e.g. ~/Library/Application Support/Claude/claude_desktop_config.json on macOS).

  2. Add your server:

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

Customization

  • Tools: Add new tools in src/tools.ts.

  • Resources: Add new resources in src/resources.ts.

  • Config: Update src/config.ts for environment variables.

License

MIT

Install Server
F
license - not found
C
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP server for AI access to Swagger by SmartBear.

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

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/v4lheru/generic-mcp-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server