Skip to main content
Glama

Hello MCP Server

by mfang0126

Hello MCP Server

Simple MCP (Model Context Protocol) server with AWS Lambda deployment.

๐Ÿš€ Quick Start

Local Development

npm install npm run dev

Connect to Claude Desktop by adding to config:

{ "mcpServers": { "hello-mcp": { "command": "npx", "args": ["tsx", "/Users/mingfang/Code/hello-mcp/index.ts"] } } }

Deploy to AWS Lambda

# Build and deploy npm run deploy # Or step by step npm run build:lambda sam deploy --guided

First time setup:

  • Stack Name: hello-mcp-stack

  • Region: ap-southeast-2

  • Bearer Token: mcp-secret-token-12345

  • Confirm all: Y

๐Ÿ”‘ Authentication

Bearer token: mcp-secret-token-12345

Change it:

sam deploy --parameter-overrides BearerToken="your-new-token"

๐Ÿงช Test Deployment

# Health check curl https://gjt4ggcz76.execute-api.ap-southeast-2.amazonaws.com/health # List available tools curl -H "Authorization: Bearer mcp-secret-token-12345" \ https://gjt4ggcz76.execute-api.ap-southeast-2.amazonaws.com/mcp # Call sayHello tool curl -X POST \ -H "Authorization: Bearer mcp-secret-token-12345" \ -H "Content-Type: application/json" \ -d '{"tool": "sayHello", "params": {"name": "World"}}' \ https://gjt4ggcz76.execute-api.ap-southeast-2.amazonaws.com/mcp

๐Ÿ”Œ Connect Claude to Lambda

Edit: ~/Library/Application Support/Claude/claude_desktop_config.json

{ "mcpServers": { "hello-mcp-lambda": { "url": "https://gjt4ggcz76.execute-api.ap-southeast-2.amazonaws.com/mcp", "transport": "http", "headers": { "Authorization": "Bearer mcp-secret-token-12345" } } } }

Important: Use "transport": "http" for Lambda.

๐Ÿ› ๏ธ Tools

  • sayHello - Greet someone by name

๐Ÿ“‹ Deployment Record

Stack Name: hello-mcp-stack Region: ap-southeast-2 Deployed: 2025-10-17 Status: โœ… Tested and working

Outputs:

  • API URL: https://gjt4ggcz76.execute-api.ap-southeast-2.amazonaws.com/

  • Lambda ARN: arn:aws:lambda:ap-southeast-2:670326884047:function:hello-mcp-server

  • Authentication: Bearer token with 'http' transport

Test Results:

# โœ… Health check working # โœ… Tool listing: ["sayHello"] # โœ… sayHello execution: "Hello, AWS Lambda! ๐Ÿ‘‹"

๐Ÿ“ Project Structure

hello-mcp/ โ”œโ”€โ”€ index.ts # Local development (stdio) โ”œโ”€โ”€ lambda.ts # AWS Lambda handler โ”œโ”€โ”€ template.yaml # AWS SAM template โ”œโ”€โ”€ samconfig.toml # SAM configuration โ”œโ”€โ”€ package.json # Dependencies โ””โ”€โ”€ tsconfig.json # TypeScript config

๐Ÿ’ฐ Cost

Lambda free tier: 1M requests/month Expected cost: $0-5/month

๐Ÿ“š Learn More

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A simple MCP server that provides a basic greeting tool and serves as a starter template for AWS Lambda deployment. Demonstrates how to build and deploy MCP servers with both local development and cloud deployment capabilities.

  1. ๐Ÿš€ Quick Start
    1. Local Development
    2. Deploy to AWS Lambda
  2. ๐Ÿ”‘ Authentication
    1. ๐Ÿงช Test Deployment
      1. ๐Ÿ”Œ Connect Claude to Lambda
        1. ๐Ÿ› ๏ธ Tools
          1. ๐Ÿ“‹ Deployment Record
            1. ๐Ÿ“ Project Structure
              1. ๐Ÿ’ฐ Cost
                1. ๐Ÿ“š Learn More

                  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/mfang0126/ts-mcp-fargate-ecs-starter'

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