Hyperterse
Hyperterse is an open-source framework to build MCP tool servers from declarative definitions, with built-in auth, caching, and OpenTelemetry.
What is Hyperterse?
Hyperterse is an open-source framework for building MCP (Model Context Protocol) tool servers from declarative configuration. Instead of exposing many individual MCP tool endpoints, it compiles your tool definitions into a standards-compliant MCP server that agents use through a consistent interface.
The framework’s core purpose is to let you “define tools once” (including database connections and authentication rules) and have Hyperterse handle the runtime concerns—such as auth enforcement, result caching, and observability—without requiring you to write and maintain glue code for each tool endpoint.
Key Features
- Declarative tool definitions from directories and declaration files: Each directory under
app/tools/becomes a tool automatically, so you don’t write registration code for each tool. - Two-tool MCP interface (search + execute): Agents interact with a server that exposes exactly two MCP tools—
searchandexecute—while Hyperterse discovers and routes to the correct underlying tool implementation dynamically. - Built-in authentication via
api_keyplugin: Attach authentication to tools with the built-inapi_keyplugin (or implement your own), with auth enforced automatically before eachexecutecall. - Caching with global or per-tool TTL: Enable result caching so identical
executecalls can return cached results instead of hitting your database; caching rules can be set globally or per tool. - Multi-database support with managed pooling and lifecycle: Connect PostgreSQL, MySQL, MongoDB, and Redis using adapters; Hyperterse manages connection pooling, health checks, and graceful shutdown.
- Observability using OpenTelemetry: Hyperterse includes OpenTelemetry tracing, metrics, and structured logging to debug end-to-end
searchandexecutecalls. - TypeScript scripts for handlers and transforms: When declaration files alone aren’t enough, add handlers/transforms as scripts that run in a sandboxed runtime with
fetchandconsole. - Compile & deploy as a single artifact: Hyperterse compiles declaration files and scripts into one artifact that can be served on Docker, Kubernetes, bare metal, or any cloud environment.
How to Use Hyperterse
- Install Hyperterse using one of the provided commands (cURL, NPM, Bun, or Homebrew).
- Create your tool and adapter definitions:
- Put database adapters under
app/adapters/. - Put tool declarations under
app/tools/, where each tool is represented by its directory name and includes a declaration file containing a SQL statement, typed inputs, and optional auth and caching rules.
- Put database adapters under
- (Optional) Add TypeScript handlers/transforms when you need logic beyond what declaration files support.
- Build/compile your server artifact so your tools, scripts, and configuration are bundled together.
- Serve the compiled MCP server in your target environment; agents then use
searchto find tools andexecuteto run the selected tool with structured inputs.
Use Cases
- Database-backed research or analytics tools: Define many SQL-based tools in
app/tools/and let an agent usesearchto find the right query tool andexecuteto run it with typed inputs. - Multi-tenant or access-controlled tool execution: Attach API key authentication rules to specific tools so auth runs automatically before each
executecall. - Cost or latency-sensitive query workflows: Enable global or per-tool caching with a TTL so repeated
executecalls can return cached results rather than re-querying the database. - Teams standardizing MCP server behavior: Use Hyperterse’s built-in auth, caching, and OpenTelemetry tracing to keep different tool servers consistent without maintaining separate boilerplate for each tool endpoint.
- Production deployments across infrastructure types: Compile to a single artifact and deploy it to Docker, Kubernetes, bare metal, or cloud environments without changing the tool definition approach.
FAQ
-
What is Hyperterse built for? Hyperterse is for building MCP tool servers from declaration files, compiling and serving them with built-in support for auth, caching, and observability.
-
Is Hyperterse free to use? Yes. It is free and open source under the Apache 2.0 license, and it can be self-hosted.
-
How do declaration files map to tools? Tools are defined under
app/tools/; each tool directory corresponds to a tool name, and the directory’s declaration file specifies a SQL statement, typed inputs, and optional auth/caching rules. -
Which databases are supported? Hyperterse supports PostgreSQL, MySQL, MongoDB, and Redis out of the box, using dedicated adapters.
-
What MCP interface does Hyperterse expose to agents? Hyperterse exposes exactly two MCP tools—
searchandexecute—regardless of how many tool definitions you include.
Alternatives
- Custom MCP tool servers with explicit endpoints: Build an MCP server that exposes one tool endpoint per capability. This can offer fine-grained control, but typically requires writing and maintaining more registration, validation, auth, caching, and observability code.
- Frameworks that focus on routing/discovery rather than compilation: Use an approach where an agent or router maps requests to backend functions/tools. Compared to Hyperterse, you may still need to implement validation, auth, caching, and tracing consistently.
- Database-only tool libraries with application-managed middleware: Use typed database access libraries and implement middleware for auth, caching, and tracing in your app layer. This shifts responsibilities away from an MCP framework and can increase integration effort per tool.
- General-purpose workflow engines for tool execution: Orchestrators that run tasks based on configurations. These alternatives may support tool chaining, but Hyperterse is specifically oriented around MCP server behavior and declarative tool compilation into a standards-compliant interface.
Alternatives
AakarDev AI
AakarDev AI is a powerful platform that simplifies the development of AI applications with seamless vector database integration, enabling rapid deployment and scalability.
Arduino VENTUNO Q
Arduino VENTUNO Q is an edge AI computer for robotics, combining AI inference hardware and a microcontroller for deterministic control. Arduino App Lab-ready.
Devin
Devin is an AI coding agent that helps software teams complete code migrations and large refactoring by running subtasks in parallel.
BenchSpan
BenchSpan runs AI agent benchmarks in parallel, captures scores and failures in run history, and uses commit-tagged executions to improve reproducibility.
Edgee
Edgee is an edge-native AI gateway that compresses prompts before LLM providers, using one OpenAI-compatible API to route 200+ models.
Codex Plugins
Use Codex Plugins to bundle skills, app integrations, and MCP servers into reusable workflows—extending Codex access to tools like Gmail, Drive, and Slack.