AdonisJS package for building MCP servers

AdonisJS package for building MCP servers

adonis-mcp•by7nohe

A package for the AdonisJS framework that provides Model Context Protocol support, enabling developers to build remote MCP servers using Server-Sent Events.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Lets developers register MCP routes defining resources, tools, and prompts inside AdonisJS.
  • •Supports defining resource templates, tools, and prompts on the MCP server.
  • •Uses a generated config file with configurable SSE and messages paths and server name/version options.

BEST FOR

  • •AdonisJS developers who want to expose tools and prompts to MCP clients over SSE.
  • •Teams debugging an MCP server locally with the Inspector or a configuration file.

ABOUT ADONIS-MCP

AdonisJS package for building MCP servers is cataloged as an MCP server attributed to 7nohe. A package for the AdonisJS framework that provides Model Context Protocol support, enabling developers to build remote MCP servers using Server-Sent Events. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for AdonisJS package for building MCP servers are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport does Adonis MCP use for servers?

It builds remote MCP servers using Server-Sent Events (SSE).

What can I define on the MCP server with registerRoutes?

You can define tools and prompts, as well as resources and resource templates, on the server.

How can I test the server locally?

You can use the Inspector, setting the transport type to SSE and connecting to the local SSE URL.

Upstream README

View this exact version on GitHub

README.md · 73f3f191e02c · Fetched 2026-11-13 10:14:29 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Adonis MCP

Adonis MCP is a package designed for the AdonisJS framework that provides support for the Model Context Protocol (MCP). With this package, you can easily build remote MCP servers using Server-Sent Events (SSE).

Installation

Run the following command to install the package:

node ace add @7nohe/adonis-mcp

Configuration

After installation, a config/mcp.ts file will be generated. Edit this file to customize the MCP server settings.

Example:

import { defineConfig } from '@7nohe/adonis-mcp'

export default defineConfig({
  ssePath: '/sse',
  messagesPath: '/messages',
  serverOptions: {
    name: 'mymcp',
    version: '0.0.1',
  },
})

Usage

Registering Routes

You can use the registerRoutes method in start/routes.ts to define tools and prompts. Below is an example:

import mcp from '@7nohe/adonis-mcp/services/main'
import { ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js'
import { z } from 'zod'

await mcp.registerRoutes((server) => {
  server.resource(
    'echo',
    new ResourceTemplate('echo://{message}', { list: undefined }),
    async (uri, { message }) => ({
      contents: [
        {
          uri: uri.href,
          text: `Resource echo: ${message}`,
        },
      ],
    })
  )

  server.tool('echo', { message: z.string() }, async ({ message }) => ({
    content: [{ type: 'text', text: `Tool echo: ${message}` }],
  }))

  server.prompt('echo', { message: z.string() }, ({ message }) => ({
    messages: [
      {
        role: 'user',
        content: {
          type: 'text',
          text: `Please process this message: ${message}`,
        },
      },
    ],
  }))
})

Starting the Server

After defining the routes, start the MCP server by running the following command:

npm run dev

Debugging

Using Configuration File

To debug, edit the MCP server configuration file (e.g., for Claude Desktop or Cursor) as follows:

{
  "mcpServers": {
    "mymcp": {
      "url": "http://localhost:3333/sse"
    }
  }
}

Using Inspector

Another debugging method is to use the Inspector. Start it with the following command:

npx @modelcontextprotocol/inspector
  1. Set the Transport Type to SSE.
  2. Enter the URL http://localhost:3333/sse.
  3. Click the Connect button.
  4. Confirm that the status changes to Connected.

For more details, refer to the Inspector Documentation.

License

This project is provided under the MIT License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for AdonisJS package for building MCP servers from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/adonis-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools