🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mostajs/orm-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mostajs/orm-mcp

MCP server for @mostajs/orm — lets AI dev tools (Claude, Cursor, Cline) generate EntitySchemas, lint them (24 rules), and produce SQL migrations.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@mostajs/orm-mcp

MCP server for @mostajs/orm — lets AI dev tools (Claude, Cursor, Cline…) generate EntitySchemas, lint them (24 rules), and produce SQL migrations directly from a prompt.

npm License: AGPL-3.0

Tools

ToolWhat it does
mostajs_generate_schemaBuild a typed EntitySchema (TS) from an entity name + fields (+ relations). Runs the validator on the result.
mostajs_validateLint one or more EntitySchemas with the built-in conceptual validator (24 rules).
mostajs_create_migrationDiff two schema sets → SQL migration (diffSchemas + generateMigrationSQL).

All three reuse @mostajs/orm's public API — no logic is reinvented.

Use it (hosted)

A public instance runs at https://orm-mcp.amia.fr/mcp (Streamable HTTP). Add it to your MCP client:

{
  "mcpServers": {
    "mostajs-orm": { "url": "https://orm-mcp.amia.fr/mcp" }
  }
}

Clients that only speak stdio can bridge it:

npx mcp-remote https://orm-mcp.amia.fr/mcp

Visiting https://orm-mcp.amia.fr/mcp in a browser returns a JSON-RPC 405 — that is expected (MCP is POST-only). The human-readable info page is the root /.

Run it (local, stdio)

npx @mostajs/orm-mcp        # stdio transport — the AI tool spawns this process

Local MCP config (Claude Desktop / Cursor / Cline):

{
  "mcpServers": {
    "mostajs-orm": { "command": "npx", "args": ["-y", "@mostajs/orm-mcp"] }
  }
}

In stdio mode, mostajs_validate also accepts a sourceRoot to enable cross-file rules (it reads the local filesystem — disabled on the hosted server for safety).

Run it (self-hosted HTTP)

PORT=14510 npx @mostajs/orm-mcp        # or: npx @mostajs/orm-mcp --http

Serves the MCP endpoint at /mcp (POST) and a health/info page at /.

License

AGPL-3.0-or-later — © Dr Hamid MADANI. Commercial licensing for @mostajs/orm: drmdh@msn.com.

Keywords

mcp

FAQs

Package last updated on 01 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts