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

@dosarjust/mcp-server

v1.0.0

Published

MCP server for DosarJust public API — AI agent tools over /api/public/*

Readme

DosarJust MCP Server

MCP server for AI agents (Cursor, Claude Desktop, etc.) that exposes all 14 operations from the DosarJust public API as MCP tools.

The server is a thin HTTP proxy — it forwards tool calls to /api/public/* with optional X-Api-Key. API key management stays unchanged (generate keys in Contul meu → API on dosarjust.ro).

Quick start

cd mcp-server
npm install --include=dev
npm run build
npm test

Cursor / Claude configuration

Add to .cursor/mcp.json (project or user-level) or claude_desktop_config.json:

{
  "mcpServers": {
    "dosarjust": {
      "command": "npx",
      "args": ["-y", "@dosarjust/mcp-server"],
      "env": {
        "DOSAR_API_BASE_URL": "https://dosarjust.ro",
        "DOSAR_API_KEY": "dj_live_your_key_here"
      }
    }
  }
}

From a local checkout, use "command": "node", "args": ["/path/to/portal/mcp-server/dist/index.js"] instead. For the staging API, set DOSAR_API_BASE_URL to https://test.dosarjust.ro.

Public documentation: https://dosarjust.ro/mcp-server

Environment variables

| Variable | Default | Description | |----------|---------|-------------| | DOSAR_API_BASE_URL | https://dosarjust.ro | API base URL | | DOSAR_API_KEY | — | Optional X-Api-Key header (required for webhook tools) | | DOSAR_OPENAPI_PATH | bundled spec, or ../backend/openapi/public-api.openapi.json in the monorepo | Path to OpenAPI spec (tools are generated from this) |

Available tools (14)

| Tool | REST endpoint | |------|---------------| | search_dosare | GET /api/public/search | | search_parte | GET /api/public/parte/search | | get_dosar | GET /api/public/dosar/{numar} | | get_dosar_solutii | GET /api/public/dosar/{numar}/solutii | | get_parte | GET /api/public/parte/{hash} | | get_parte_dosare | GET /api/public/parti/{hash}/dosare | | stats_solutii | GET /api/public/stats/solutii | | webhook_subscribe | POST /api/public/webhooks/subscribe | | list_webhooks | GET /api/public/webhooks | | delete_webhook | DELETE /api/public/webhooks/{id} | | renew_webhook | POST /api/public/webhooks/{id}/renew | | create_search_alert | POST /api/public/webhooks/search-alerts | | list_search_alerts | GET /api/public/webhooks/search-alerts | | delete_search_alert | DELETE /api/public/webhooks/search-alerts/{id} |

Dosar numbers with slashes (e.g. 14039/301/2024) are automatically URL-encoded in path parameters.

Tool response format

Tools return JSON (not MCP errors) so agents can handle API errors gracefully:

{
  "status": 200,
  "headers": { "x-cache": "HIT" },
  "data": { "...": "API response body" }
}

Recommended agent workflow (RAG)

  1. search_dosare — discover dosare by query
  2. get_dosar — full context (parties, hearings)
  3. get_dosar_solutii — all solutions chronologically

Development

npm run dev    # run via tsx (stdio)
npm run build  # compile to dist/
npm test       # vitest unit tests

Tools are generated at startup from backend/openapi/public-api.openapi.json — when the spec changes, restart the MCP server.