Sublinear Time Solver logo

Sublinear Time Solver

MCP tools for sparse linear solving, single-entry estimates, PageRank, and local personalized PageRank.

Install Sublinear Time Solver

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sublinear-time-solver": {
      "command": "npx",
      "args": [
        "-y",
        "sublinear-time-solver"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y sublinear-time-solver

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The sublinear-time-solver MCP server exposes sparse linear algebra and graph-ranking operations to MCP clients over standard input and output. Its tools accept sparse matrices in COO form and graph data, supporting full solves, single-entry estimates, PageRank, and local personalized PageRank. Use it when an agent needs to solve sparse systems, inspect local graph influence, or rank nodes without materializing every result. The package also includes a CLI and JavaScript core for non-MCP use.

Use cases

  • Solve sparse systems of equations through an MCP client
  • Estimate one entry without computing the full solution
  • Rank graph nodes with PageRank or personalized PageRank
  • Compute local graph influence after a targeted change

Key features

  • COO, dense-row, and CSR matrix support
  • Automatic and selectable sparse solve methods
  • Single-entry estimation with random walks
  • Global and personalized PageRank
  • Local forward- and backward-push algorithms
  • CLI, MCP server, and JavaScript core

Tools3

What Sublinear Time Solver lets your agent do. Expand a tool for its parameters.

Self-reported~37 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

1 high-severity advisory on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 0High 1Medium 1Low 0

Scanned 12h ago via OSV.dev · sublinear-time-solver (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars102Stargazers on the source repository.
Last commit11d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Tools exposed3Callable tools this server registers over MCP.

How Sublinear Time Solver works

What sublinear-time-solver does

sublinear-time-solver provides MCP access to sparse linear solvers and graph-ranking algorithms. It can solve systems of equations, estimate an individual value in a solution, calculate PageRank or personalized PageRank, and perform local push computations on graphs. The package is also available as a command-line application and as a JavaScript library; the zero-dependency @ruvnet/sublinear-core package contains the reusable mathematical implementation.

The server is suited to sparse problems where each row depends on relatively few other entries. Local operations can focus on the neighborhood relevant to a query, while solve returns the complete solution vector. The practical benefit of local computation depends on matrix structure, graph connectivity, accuracy settings, and how far a change propagates.

How it works

Start the server through an MCP client's standard input/output transport. MCP requests carry matrix, vector, graph, and algorithm parameters to the server, and diagnostics are written to stderr so stdout remains available for JSON-RPC traffic.

Sparse matrices can be supplied in coordinate format, with row and column indexes paired with nonzero values. The solver also supports dense rows and CSR matrices through the core library. Its automatic method selection uses conjugate gradient for symmetric matrices with a positive diagonal and Gauss-Seidel otherwise. Jacobi and Neumann methods are available as explicit choices. Jacobi, Neumann, and Gauss-Seidel require diagonal dominance, while conjugate gradient requires a symmetric positive-definite matrix.

For local personalized PageRank, forward push has a work bound based on damping and epsilon rather than graph size. estimateEntry uses random walks to estimate one solution entry and reports a standard error after a one-time matrix check. Residuals and convergence metadata help assess the quality of a full solve.

Setup and configuration

A compatible MCP client can launch the server with npx:

config.json
{
  "mcpServers": {
    "sublinear-solver": {
      "command": "npx",
      "args": ["-y", "sublinear-time-solver", "serve"]
    }
  }
}

Claude Code can register the same command with claude mcp add sublinear -- npx -y sublinear-time-solver serve. Codex uses an mcp_servers.sublinear entry in ~/.codex/config.toml, with npx as the command and the serve arguments. The CLI can also run directly with commands such as solve, analyze, and pagerank.

Tools and capabilities

  • Solve a complete sparse linear system with solve.
  • Estimate one solution entry with estimateEntry and receive a standard error.
  • Calculate global or personalized node scores with pageRank and personalizedPageRank.
  • Compute local personalized PageRank with forward- or backward-push methods.
  • Inspect matrices, generate test inputs, and run PageRank through the CLI.
  • Choose among automatic selection, Jacobi, Neumann, Gauss-Seidel, and conjugate-gradient solving methods.

The core library also exposes graph construction, CSR conversion, residual reporting, and top-k ranking helpers. Graph scores are normalized to sum to one, and the damping option represents the probability of following an edge.

Limitations and notes

Local computation is most appropriate when matrix rows have few neighbors, diagonal terms dominate, and changes remain local. Full solves return every value and therefore produce output proportional to system size. Check matrix structure with analyze and inspect the residual when equation accuracy matters. The quick-start interface uses COO matrices, and duplicate COO entries are summed by the core solver.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sublinear Time Solver

sublinear-time-solver is an MCP server that connects MCP clients to sparse linear algebra and graph-ranking tools. Its main tools solve systems with sparse matrices, estimate individual solution entries, calculate PageRank and personalized PageRank, and run local push computations for graph queries.

Install it by configuring your MCP client to run `npx -y sublinear-time-solver serve`. Claude Code supports `claude mcp add sublinear -- npx -y sublinear-time-solver serve`; Codex uses the equivalent command and arguments in its MCP server configuration.

The MCP quick-start workflow accepts coordinate-format sparse matrices. Provide the row and column counts plus parallel arrays of nonzero values, row indexes, and column indexes. The JavaScript core additionally accepts dense rows and CSR matrices.

It supports automatic selection, Jacobi, Neumann, Gauss-Seidel, and conjugate gradient. Automatic selection uses conjugate gradient for symmetric matrices with a positive diagonal and Gauss-Seidel otherwise; the iterative methods have matrix-structure requirements.

Yes, it supports local personalized PageRank through forward-push and backward-push operations. Forward push accepts an epsilon accuracy parameter and can limit work according to damping and epsilon rather than the total graph size.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSublinear Time Solver AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sublinear-time-solver?style=directory)](https://allmcps.com/mcp/sublinear-time-solver)
HTML Embed
<a href="https://allmcps.com/mcp/sublinear-time-solver"><img src="https://allmcps.com/api/badge/sublinear-time-solver?style=directory" alt="Sublinear Time Solver on AllMCPs" /></a>