larryhudson
MCP Serverlarryhudsonpublic

mcp server template

A template for making an MCP server with TypeScript

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
JavaScript
Language
MIT License
License

About This Server

A template for making an MCP server with TypeScript

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

[Template] MCP Server

How to use this template

  • Add tool definitions in src/index.ts
  • Update the README below
  • Update the placeholder info in package.json
  • Test building the MCP server with npm run build, and using the @modelcontextprotocol/inspector library
  • Publish to npm: npm login, npm publish --access public

Overview

[Insert overview here]

Features

[Insert features here]

Setup

  1. Create a API key etc.
  2. Set the token as an environment variable:
export API_KEY_ENV_VAR=the_secret_api_key

Usage

Using with VS Code

Add this to your settings JSON file:

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "some_secret_api_key",
        "description": "Secret API key",
        "password": true
      }
    ],
    "servers": {
      "[library-name]": {
        "command": "npx",
        "args": [
          "-y",
          "@larryhudson/[the-library]"
        ],
        "env": {
          "API_KEY_ENV_VAR": "${input:some_secret_api_key}"
        }
      }
    }
  }
}

Using with Claude or other MCP-compatible applications

Add this to your MCP configuration JSON file:

{
  "mcpServers": {
    "[the-library]": {
      "command": "npx",
      "args": ["-y", "@larryhudson/[the-library]"],
      "env": {
        "API_KEY_ENV_VAR": "<THE_SECRET_API_KEY>"
      }
    }
  }
}

Available Tools

[List the tools here]

How It Works

[Some info about how it works]

Technical Details

Built with:

  • Model Context Protocol (MCP): Framework for allowing AI assistants to interact with external tools
  • TypeScript: For type safety and better developer experience

Development

You can use the Model Context Protocol inspector to try out the server:

npx @modelcontextprotocol/inspector npx tsx src/index.ts

Limitations and Future Improvements

License

MIT

Quick Start

1

Clone the repository

git clone https://github.com/larryhudson/mcp-server-template
2

Install dependencies

cd mcp-server-template
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerlarryhudson
Repomcp-server-template
LanguageJavaScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation