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

riskmodels-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riskmodels-mcp-server

MCP server for RiskModels API visibility (resources + tools)

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

RiskModels API MCP Server

MCP server that exposes RiskModels API visibility inside Cursor (and other MCP clients): discover endpoints, read the agent manifest, list capabilities, and fetch response schemas. No need to clone any other repo—everything runs from this (RiskModels_API) repo.

Resources (read-only)

URIDescription
riskmodels:///manifestAgent Protocol manifest. Fetches from RISKMODELS_API_BASE when set; otherwise returns static capabilities.
riskmodels:///capabilitiesFull list of API capabilities (endpoints, parameters, pricing, examples).
riskmodels:///schemas/listList of available response schema paths.
riskmodels:///schemas/{path}JSON schema for a response (e.g. ticker-returns-v2.json).
riskmodels:///openapiOpenAPI 3.x spec (data/openapi.json).

Tools

ToolDescription
riskmodels_list_endpointsList all public API capabilities (id, name, method, endpoint, short description).
riskmodels_get_capabilityGet full capability by id (parameters, pricing, examples).
riskmodels_get_schemaGet JSON schema by path (e.g. ticker-returns-v2.json).

Setup

cd mcp-server
npm install
npm run build

Add the server to Cursor (e.g. .cursor/mcp.json in your project):

{
  "mcpServers": {
    "riskmodels-api": {
      "command": "node",
      "args": ["/absolute/path/to/RiskModels_API/mcp-server/dist/index.js"]
    }
  }
}

If you use RiskModels_API as your Cursor workspace, you can use a relative path:

"args": ["mcp-server/dist/index.js"]

Restart Cursor after editing the config.

Optional: Set RISKMODELS_API_BASE=https://riskmodels.net so the manifest resource fetches the live agent manifest from the API.

Maintenance (for API / repo maintainers)

The MCP server serves static data from mcp-server/data/. When the live RiskModels API gains new endpoints, changes pricing, or updates response schemas, this data should be updated so Cursor and other MCP clients stay in sync.

What gets updated

  • data/capabilities.json — List of API capabilities (endpoints, methods, parameters, pricing, examples).
  • data/schema-paths.json — List of response schema paths.
  • data/schemas/*.json — JSON Schema files for each response type.
  • data/openapi.json — Optional; can mirror or summarize the repo’s OPENAPI_SPEC.yaml.

How to update

The canonical API and capabilities live in the Risk_Models platform repo. From that repo you can run npm run generate-mcp-data (in riskmodels_com/) to regenerate capabilities.json, schema-paths.json, and schemas/*.json from the app’s lib/agent registry; then copy the updated files into this repo’s mcp-server/data/. The openapi.json here is a subset of the full OPENAPI_SPEC.yaml and should be updated when new public endpoints are added.

  • Obtain updated data from the canonical source (Risk_Models) or by hand from the API application’s capabilities and schema registry.
  • Replace the contents of mcp-server/data/:
    • capabilities.json
    • schema-paths.json
    • schemas/*.json
    • openapi.json (if used)
  • If server code changed (e.g. new resources or tools): update mcp-server/src/index.ts (and any other source files), then run npm run build inside mcp-server/.
  • Commit and push so users who clone RiskModels_API get the latest MCP behavior and data.

When to update

  • New public API endpoints or capabilities.
  • Changes to existing endpoints (parameters, pricing, descriptions).
  • New or changed response schemas.
  • OpenAPI spec changes you want reflected in the riskmodels:///openapi resource.

Keeping data/ in sync with the live API after releases or significant API changes ensures the MCP server remains a reliable reference for developers and tools.

FAQs

Package last updated on 25 Mar 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