Simple MCP Server is an MCP server that serves as a starter template built with TypeScript and the official Model Context Protocol SDK. It connects AI assistants directly to local utility functions and external APIs via standard input and output (stdio) transport. Developers use this template to quickly scaffold and build custom MCP tools and resources without constructing the underlying protocol architecture from scratch. The server comes with pre-built example tools including string echoing, number addition, system time retrieval, and flight status tracking using either mock records or live AviationStack API data. In addition, it exposes static resources such as server metadata and greeting messages. Its modular architecture isolates tool handlers, resource handlers, and registries into distinct classes, allowing engineers to cleanly extend protocol capabilities and link external databases, command-line utilities, or web services into AI agent workflows.
Category: Other & General Purpose
Tags: example, starter, template, typescript
npm install. 2. Build the project using npm run build. 3. Optionally configure an environment variable such as AVIATIONSTACK_API_KEY for live flight data. 4. Open your MCP client configuration file (such as Claude Desktop or Cursor) and add the server definition under mcpServers using stdio transport: json { "mcpServers": { "simple-server": { "command": "node", "args": ["path/to/dist/index.js"] } } } 5. Replace path/to/dist/index.js with the absolute path to your compiled build output, save the configuration, and restart your MCP client.Part of MCP Servers
Clone the repository to your machine, install dependencies using npm install, and compile the TypeScript code with npm run build. Once built, reference the resulting dist/index.js file with node in your MCP client configuration under the mcpServers key.
It provides built-in tools for echoing text, adding numbers, retrieving the current server date and time, and looking up flight statuses. It also demonstrates how to expose read-only MCP resources for server information and greetings, acting as a modular template for building custom tools.
Any MCP-compatible client that supports standard input and output transport can connect to this server. This includes AI interfaces such as Claude Desktop and development environments like Cursor when configured with the server node command and path.
The flight status tool accepts a flight number and returns departure and arrival details, airline info, and live status. By default, it operates with mock data, but it can fetch live information when provided with an AviationStack API key via the AVIATIONSTACK_API_KEY environment variable.