# mosta-net [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/apolocine/mosta-net  
**GitHub Stars:** 0  
**npm Downloads (last month):** 514  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mosta-net

## Description
1 MCP server, 13 databases, zero config. Multi-protocol transport with Auth + RBAC.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mosta-net": {
    "command": "npx",
    "args": ["-y","@mostajs/net"],
    "env": {
      "DB_DIALECT": "",
      "SGBD_URI": ""
    }
  }
}
```

**Requires environment variables:** `DB_DIALECT`, `SGBD_URI` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mosta-net MCP server does

The mosta-net MCP server, published as Octonet or `@mostajs/net`, exposes a single schema from `@mostajs/orm` through MCP. Entities registered in that schema become available to connected agents through generated tools rather than hand-written MCP handlers. The server is designed for applications that need an agent-facing data interface alongside conventional application protocols.

MCP is one of 11 available transports. The same entities can also be reached through REST, GraphQL, WebSocket, SSE, JSON-RPC, gRPC, tRPC, OData, NATS, and Arrow Flight. This makes the MCP endpoint suitable for an agent operating alongside browser clients, services, or analytics consumers using the same data model.

## How it works

Octonet runs as a TypeScript and Fastify Node.js server. It uses `@mostajs/orm` for persistence and generates transport interfaces from the registered entity schema. The MCP endpoint is available at `/mcp`, using POST and GET with server-sent events as documented in the project.

For each entity, the MCP transport generates 15 tools. The documented operations include create, read, update, and delete actions, record counts, search, aggregation, bulk operations, and relations. Exact tool names depend on the generated entity interface, so the schema determines which resources an agent can access.

Authentication is based on API keys and scopes. A request can present an `X-API-Key` header, a bearer token, or an `apikey` query parameter. Authorization checks can cover projects, operations such as read or write, and transports such as MCP. The server also supports RBAC for human-oriented administration and can sanitize sensitive fields such as passwords, hashes, and tokens before returning entity data.

## Setup and configuration

Self-hosting starts with `npx @mostajs/net init`, according to the project documentation. The server requires a configured ORM database dialect and connection URI. The documented settings use `DB_DIALECT` for the dialect and `SGBD_URI` for the database connection, for example PostgreSQL, SQLite, or MongoDB values.

Supported persistence dialects include PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, DB2, SAP HANA, HSQLDB, Sybase, CockroachDB, Google Cloud Spanner, and MongoDB. Switching databases involves changing the dialect and connection settings rather than changing the MCP entity interface.

## Tools and capabilities

- Generate MCP tools from registered ORM entities.
- Perform entity CRUD operations.
- Count, search, aggregate, and bulk-process records.
- Work with entity relations.
- Enforce project, operation, and transport scopes.
- Serve the same schema through additional network protocols.

## Limitations and notes

Database access also depends on a valid dialect and connection configuration.

The public sandbox provides pre-seeded `User`, `Product`, and `Order` entities and permits read-write CRUD through REST and MCP. It uses an isolated SQLite file, limits usage to 500 requests per day, and expires after seven days of inactivity. Those sandbox conditions should not be assumed for a self-hosted deployment.

The project is licensed under AGPL-3.0-or-later. The mosta-net MCP server is therefore relevant to teams that can accommodate that license and want MCP access controlled through the project’s API-key and scope model.

_Full upstream README: https://allmcps.com/mcp/mosta-net/readme_

