MCP Hub
Back to servers

mosta-net

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

Registry
Updated
Apr 3, 2026

Quick Install

npx -y @mostajs/net

@mostajs/net — OctoNet

11 transports × 13 databases × zero config. Multi-protocol transport server for @mostajs/orm with MCP (Model Context Protocol) support.

OctoNet Logo

npm

Install

npm install @mostajs/net @mostajs/orm @mostajs/mproject

Quick Start

# Start with SQLite (zero config)
DB_DIALECT=sqlite SGBD_URI=:memory: MOSTA_NET_REST_ENABLED=true npx mostajs-net serve

# Start as MCP server (for Claude Desktop)
npx octonet-mcp --dialect=postgres --uri=postgresql://user:pass@localhost:5432/mydb

11 Transports

#TransportEndpointProtocol
1REST/api/v1/{collection}HTTP CRUD (15 routes per entity)
2GraphQL/graphqlAuto-generated schema + GraphiQL IDE
3WebSocket/wsBidirectional, real-time change events
4SSE/eventsServer-Sent Events streaming
5JSON-RPC/rpcJSON-RPC 2.0 with method discovery
6MCP/mcpModel Context Protocol (AI agents: Claude, GPT)
7gRPC:50051Auto-generated .proto, 6 RPCs per entity
8tRPC/trpc/{Entity}.{op}TypeScript fullstack with type generation
9OData/odata/{Collection}OData v4 ($filter, $select, $orderby, $metadata)
10NATSmostajs.{Entity}.{op}Pub/sub + request-reply messaging
11Arrow Flight/arrow/*High-performance columnar data streaming

13 Databases (via @mostajs/orm)

CategoryDatabases
SQL MainstreamPostgreSQL, MySQL, MariaDB, SQLite
SQL EnterpriseOracle, SQL Server, DB2, SAP HANA, HSQLDB, Sybase
NewSQL / CloudCockroachDB, Google Cloud Spanner
NoSQLMongoDB

Multi-Project Support

Via @mostajs/mproject — run multiple isolated databases on the same server:

# Add project dynamically
curl -X POST http://localhost:4488/api/projects \
  -H "Content-Type: application/json" \
  -d '{"name":"analytics","dialect":"mongodb","uri":"mongodb://localhost:27017/analytics","schemas":[...]}'

# CRUD on project via path prefix
curl http://localhost:4488/api/v1/analytics/events

# Or via header
curl http://localhost:4488/api/v1/events -H "X-Project: analytics"

MCP (Model Context Protocol)

OctoNet exposes 15 MCP tools per entity + 4 prompts for AI agents.

Claude Desktop Configuration

{
  "mcpServers": {
    "octonet": {
      "command": "npx",
      "args": ["octonet-mcp", "--dialect=postgres", "--uri=postgresql://user:pass@localhost:5432/mydb"]
    }
  }
}

See MCP.md for full MCP documentation.

Admin IHM

Built-in web dashboard at http://localhost:4488/:

  • Projects — multi-database management with add/edit/delete
  • Configuration — interactive decision tree from .env
  • Schema — electronic view of DB connections + transports
  • Performance — live metrics (req/s, P50, P99, rate limiting)
  • MCP Agent Simulator — test MCP tools like an AI agent
  • API Explorer — REST, GraphQL, JSON-RPC testing

Configuration (.env)

DB_DIALECT=postgres
SGBD_URI=postgresql://user:pass@localhost:5432/mydb
DB_SCHEMA_STRATEGY=update
MOSTA_NET_PORT=4488

# Enable transports
MOSTA_NET_REST_ENABLED=true
MOSTA_NET_GRAPHQL_ENABLED=true
MOSTA_NET_WS_ENABLED=true
MOSTA_NET_SSE_ENABLED=true
MOSTA_NET_JSONRPC_ENABLED=true
MOSTA_NET_MCP_ENABLED=true
MOSTA_NET_GRPC_ENABLED=true
MOSTA_NET_TRPC_ENABLED=true
MOSTA_NET_ODATA_ENABLED=true
MOSTA_NET_NATS_ENABLED=true
MOSTA_NET_ARROW_ENABLED=true

# Rate limiting
MOSTA_RATE_LIMIT_CLIENT=1000

CLI

npx mostajs-net serve          # Start server
npx mostajs-net mcp            # MCP-only mode
npx mostajs-net generate-apikey <name>
npx mostajs-net hash-password <password>
npx mostajs-net info           # JSON config dump

npx octonet-mcp --dialect=X --uri=Y   # Standalone MCP server

API Endpoints

EndpointDescription
GET /healthServer status + transports + entities
GET /api/projectsList projects
POST /api/projectsAdd project
PUT /api/projects/:nameUpdate project
DELETE /api/projects/:nameRemove project
GET /api/performanceLive metrics
GET /api/config-treeConfiguration tree
GET /api/mcp-agent/toolsList MCP tools
POST /api/mcp-agent/callExecute MCP tool
GET /api/grpc/protoGenerated .proto file
GET /odata/$metadataOData EDMX schema

Packages

PackageRole
@mostajs/ormORM — 13 database dialects
@mostajs/netTransport server — 11 protocols
@mostajs/mprojectMulti-project manager
octonet-mcpStandalone MCP server CLI

License

MIT — (c) 2026 Dr Hamid MADANI drmdh@msn.com

Reviews

No reviews yet

Sign in to write a review