Hono Math MCP Server

Hono Math MCP Server

Enables LLMs to perform basic mathematical operations (add, subtract, multiply, divide) through a Model Context Protocol server built with Hono and deployed on Vercel. Provides type-safe calculator tools that can be accessed by any MCP-compatible client.

Category
Visit Server

README

Hono MCP Server with Bun JS & Vercel

This project demonstrates how to build a Model Context Protocol (MCP) server using Hono web framework, developed with Bun JS, and deployed on Vercel. The server exposes mathematical operation tools (add, subtract, multiply, divide) that can be consumed by MCP clients.

Demo

To connect your MCP client to the server, use: https://hono-mcp-demo.vercel.app/mcp

You can also visit https://hono-mcp-demo.vercel.app in your browser.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). This example shows how to create an MCP server that exposes tools as HTTP endpoints.

Features

  • 🧮 Math Operations: Four basic calculator tools (add, subtract, multiply, divide)
  • ⚡ Bun JS: Fast JavaScript runtime and package manager for development
  • 🔧 MCP Handler: Uses mcp-handler library for easy MCP server creation
  • 🛡️ Type Safety: Built with TypeScript and Zod for runtime validation
  • ☁️ Vercel Deployment: Optimized for serverless deployment on Vercel

Prerequisites

Development

With Bun (recommended):

bun install
vc dev

Alternative with npm:

npm install
vc dev

Open http://localhost:3000 in your browser.

Build

With Bun:

bun install
bun run build

Alternative:

npm install
vc build

Deployment

bun install  # or npm install
vc deploy

API Endpoints

  • GET / - Welcome endpoint with server information
  • POST /mcp/* - MCP protocol endpoint for tool execution

Available Tools

The server exposes the following MCP tools:

  • add - Add two numbers
  • subtract - Subtract two numbers
  • multiply - Multiply two numbers
  • divide - Divide two numbers (with zero-division protection)

Using the MCP Server

Once deployed, you can connect to this MCP server from any MCP-compatible client by pointing to the /mcp endpoint. The server handles the MCP protocol transport and tool execution automatically.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured