npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

riskmodels-mcp-server

v1.0.1

Published

MCP server for RiskModels API visibility (resources + tools)

Downloads

92

Readme

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)

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

Tools

| Tool | Description | |------|-------------| | riskmodels_list_endpoints | List all public API capabilities (id, name, method, endpoint, short description). | | riskmodels_get_capability | Get full capability by id (parameters, pricing, examples). | | riskmodels_get_schema | Get 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.

  1. Obtain updated data from the canonical source (Risk_Models) or by hand from the API application’s capabilities and schema registry.
  2. Replace the contents of mcp-server/data/:
    • capabilities.json
    • schema-paths.json
    • schemas/*.json
    • openapi.json (if used)
  3. 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/.
  4. 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.