Hapi MCP Server

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.

Local serverstdio

What is the Hapi MCP Server?

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.

The short version

[Release Notes] @hapi/hapi, joi, and @hapi/boom are all now peer dependencies to allow maximum flexibility. A reference to joi is now required as opposed to the older @hapi/joi.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
validate(required) a token validation function with the signature [async] function(request, token, h) where:
requestis the hapi request object of the request which is being authenticated.
tokenthe auth token received from the client.
isValidtrue if token is valid, otherwise false.
credentialsa credentials object passed back to the application in request.auth.credentials. Note that due to underlying Hapi expectations, this value must be defined even if isValid is false. We recommend it be set to {} if isValid
artifactsoptional [authentication](http://hapijs.com/tutorials/auth) related data that is not part of the user's credential.
options(optional)
response{"statusCode":401,"error":"Unauthorized","message":"Missing authentication"}

Example prompts to try

  • “Use Hapi to validate.”
  • “Use Hapi to request.”
  • “Use Hapi to token.”

Frequently asked questions

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.