Repository avatar
Search & Data Extraction
v0.1.0
active

kpiscout

io.github.CloudCorpRecords/kpiscout

Search 20,000+ corporate KPIs and source-attributed industry benchmarks by keyword.

Documentation

kpiscout

Find the right performance metric before you measure anything. kpiscout is a small forwarding client for the hosted KPI Depot service: the tool list is answered from your own machine using captured definitions, and each call travels upstream, with the service's answer handed back exactly as it arrived.

All three of the service's captured tools are exposed. Search a library of more than 20,000 corporate KPIs by keyword, optionally narrowed by corporate function or industry sector; open one KPI's full record — its definition, standard formula, common pitfalls, improvement levers and related KPIs; and pull that KPI's benchmark values, each carrying industry, geography, time period and sample-size metadata plus full source attribution and a citation URL.

The tools

  • search_kpis — Search the library by a free-text query, with optional function and industry filters. Returns up to 10 relevance-ranked matches, each with a one-line definition, its benchmark count and its page URL. When nothing matches the full query, the response also carries close matches (with the query words each one missed) and related KPI groups. Start here to find the kpi_id slug the other two tools need.
  • get_kpi — The full record for one KPI, addressed by its kpi_id slug: definition, standard formula, common pitfalls, improvement levers, related KPIs, the groups it belongs to, and metadata about its available benchmarks.
  • get_benchmarks — Benchmark data for one KPI at a time: values with descriptive metadata (industry, geography, time period, sample size) and full source attribution (source name, URL, excerpt and comments), plus a citation URL in every response.

Install and run

As an MCP server via npm:

npx -y @reneturcios/kpiscout mcp

MCP client configuration:

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

As a container:

docker run -i ghcr.io/cloudcorprecords/kpiscout
docker run --rm ghcr.io/cloudcorprecords/kpiscout search_kpis '{"query":"customer churn"}'

CLI

A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:

kpiscout search_kpis '{"query":"days sales outstanding","function":"Corporate Finance"}'
kpiscout get_kpi '{"kpi_id":"asset-maintenance-ratio"}'
kpiscout get_benchmarks '{"kpi_id":"asset-maintenance-ratio"}'
kpiscout --version

Exit codes: 0 for a successful forwarded call, 1 when the result that comes back is an error, and 2 for usage mistakes like an unknown subcommand or a JSON argument that does not parse.

Configuration

  • KPIDEPOT_MCP_URL — Replaces the upstream endpoint. Defaults to the pinned hosted endpoint, https://kpidepot.com/mcp. (This override variable is a reconstruction introduced by this rebuild.)

The KPI Depot registry record lists no headers for its remote, so kpiscout never attaches an authentication header — every call goes upstream keyless.

When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with kpiscout error:.

How forwarding works

The first call of a process opens a session against the upstream: an initialize request (protocol version 2025-03-26), a notifications/initialized notification, and then the tools/call. If the service issues an Mcp-Session-Id header during initialize, kpiscout repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, isError flag and any extra fields included.

Development

npm install
npm run build   # tsc -> dist/ (dist/cli.js is the bin)
npm test        # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev     # run the CLI from source

The suite compares the served tool list against the captured surface tool for tool, walks the session handshake and its reuse, proves no Authorization header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged for every one of the three tools.

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.

NPM
@reneturcios/kpiscout
Install Command
npm install @reneturcios/kpiscout
Runtime: npx
OCI
ghcr.io/cloudcorprecords/kpiscout:0.1.0
Install Command
docker pull ghcr.io/cloudcorprecords/kpiscout:0.1.0:undefined
Runtime: docker