Example MCP Server

Example MCP server demonstrating framework usage

Local serverstdioTypeScript

What is the Example MCP Server?

Example MCP server demonstrating framework usage

What the server does

A production-ready MCP (Model Context Protocol) server built with TypeScript featuring both basic tools and advanced LLM-powered capabilities with type-safe provider and model selection and dual-mode operation (STDIO + Streamable HTTP with OAuth).

Credentials and setup notes

  • Node.js 22+ (Current LTS) - Docker (via Colima on macOS) - Optional: API keys for LLM providers (Anthropic, OpenAI, Google)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
helloGreets a person by name
echoEchoes back a provided message
current-timeReturns the current timestamp
chatInteractive AI assistant using Claude Haiku (fast responses)
analyzeDeep text analysis using GPT-4 (sentiment, themes, structure)
summarizeText summarization using Gemini Flash (cost-effective)
explainEducational explanations using Claude (clear, adaptive to level)

Configuration

  • Node.js 22+ (Current LTS) - Docker (via Colima on macOS) - Optional: API keys for LLM providers (Anthropic, OpenAI, Google)
VariableDescriptionRequired
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
GOOGLE_CLIENT_IDConfiguration value read at startup.Optional
GITHUB_CLIENT_IDConfiguration value read at startup.Optional
MICROSOFT_CLIENT_IDConfiguration value read at startup.Optional

Example prompts to try

  • “Use Example to hello.”
  • “Use Example to echo.”
  • “Use Example to current-time.”

Frequently asked questions

Example MCP server demonstrating framework usage Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.