Deterministic MCP server for DSA algorithm selection

Deterministic MCP server for DSA algorithm selection

dsaengine•bysvm19

dsaEngine is a local MCP server that classifies algorithmic problems and exposes 142+ data structures and algorithms tools to coding agents over stdio.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Classifies a natural-language problem description into a recommended algorithm with confidence and complexity.
  • •Exposes algorithm implementations as tools returning code, pseudocode and results.
  • •Covers 142+ algorithms across categories such as arrays, graphs, dynamic programming, sorting and advanced trees.
  • •Runs entirely locally with no external API calls and deterministic recommendations.

BEST FOR

  • •Coding agents asked to solve algorithmic problems with an optimal approach.
  • •Catching brute-force solutions and suggesting better-complexity alternatives.
  • •Teams wanting local, zero-API-cost algorithm guidance.

ABOUT DSAENGINE

Deterministic MCP server for DSA algorithm selection is cataloged as an MCP server attributed to svm19. dsaEngine is a local MCP server that classifies algorithmic problems and exposes 142+ data structures and algorithms tools to coding agents over stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Deterministic MCP server for DSA algorithm selection are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does dsaEngine require external API calls or hosting?

No; it runs locally and communicates over stdio JSON-RPC.

Are its recommendations random or model-generated?

Recommendations are deterministic; the README describes pure keyword-based algorithm matching rather than randomness or LLM output.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 856dd4d8ebd7 · 采集于 2026-11-13 13:28:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🚀 dsaEngine

dsaEngine is a high-performance, deterministic MCP (Model Context Protocol) server providing 142+ production-grade DSA algorithms for AI coding agents (Cursor, Windsurf, Claude Code, GitHub Copilot, and more).

⚡ Zero-Cost Algorithm Advisor

DSAEngine runs locally on your machine and integrates with your favorite coding agent via the Model Context Protocol:

  • ✅ No API calls — 100% local, zero cost per use
  • ✅ 142+ algorithms — Optimal implementations categorized & indexed
  • ✅ Deterministic — No randomness, repeatable recommendations
  • ✅ 7 agents — Cursor, Windsurf, Claude Code, GitHub Copilot, Kiro, Augment, Antigravity
  • ✅ MCP compatible — JSON-RPC over stdio, zero hosting required

How It Works

You ask Cursor: "Find shortest path in weighted graph with negative edges"
        ↓
Cursor sees .cursorrules → "consult DSAEngine first"
        ↓
Cursor calls: dsa_classify("Find shortest path in weighted graph with negative edges")
        ↓
DSAEngine responds: "Bellman-Ford Algorithm, O(V·E), confidence: 0.95"
        ↓
Cursor calls: graphs.bellman_ford(edges, source)
        ↓
DSAEngine returns: Rust code + pseudocode + result
        ↓
Cursor writes optimized code

1. Install DSAEngine

Linux / macOS (Bash)

curl -sSL https://raw.githubusercontent.com/sVm19/DSAengine/main/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/sVm19/DSAengine/main/install.ps1 | iex

Note: Requires git and cargo installed if no prebuilt binary is available for your platform.

2. Setup Your Agent

3. Start Coding

Ask your agent to write an algorithm — DSAEngine will ensure it's optimal.


📖 The 142+ Algorithm Library

Organized into 13 categories:


📖 The 12 Pages (Skill Categories)

You load specifically what you need by activating Cargo features (--features "arrays graphs"), keeping binaries microscopically tight.

Feature FlagSkill CategoryExamples
arraysArrays & StringsTwo-Sum, KMP Search, Sliding Window, Kadane's Algorithm
linked_listsLinked ListsCycle Detection, Reverse, Merge Sorted, Intersection
stacks_queuesStacks & QueuesMin Stack, Valid Parentheses, Next Greater, Histogram
trees_binaryBinary TreesTraversals, LCA, Serialize, Invert, Max Path Sum
trees_advancedAdvanced TreesTrie, Segment Tree, Fenwick Tree, AVL Tree, Red-Black
graphsGraphsDijkstra, Bellman-Ford, BFS/DFS, MST (Kruskal/Prim)
dynamic_programmingDynamic ProgrammingCoin Change, LCS, Edit Distance, Knapsack
greedy_algorithmsGreedyActivity Selection, Huffman Coding, Jump Game
backtrackingBacktrackingN-Queens, Sudoku, Combinations, Permutations
sorting_searchingSorting & SearchingMerge Sort, Quick Sort, Binary Search
dsa_fundamentalsFundamentalsBig-O Analysis, Two Pointers, Sliding Window
advanced_topicsAdvancedLRU/LFU Cache, Union-Find, Bloom Filter, Trie Autocomplete

🎯 Usage

After setup, your agent automatically calls DSAEngine:

Cursor:
"Write a function to find all connected components in an undirected graph"

→ Cursor calls dsa_classify("connected components undirected graph")

DSAEngine responds:
{
  "algorithm": "Union-Find",
  "confidence": 0.98,
  "time_complexity": "O(α(n))",
  "space_complexity": "O(n)",
  "tool_name": "advanced_topics.union_find",
  "reason": "Optimal for connectivity queries with near-O(1) amortized complexity"
}

→ Cursor calls advanced_topics.union_find(...)

→ You get optimized code

As Rust Library

use dsaengine::skills::graphs::dijkstra::Dijkstra;

fn main() {
    let edges = vec![(0, 1, 4), (1, 2, 2), (0, 2, 5)];
    let (distances, paths) = Dijkstra::shortest_path(&edges, 0);
    println!("Shortest distances: {:?}", distances);
}

As HTTP API

# Run HTTP server (default: localhost:8000)
dsaengine

# Test:
curl -X POST http://localhost:8000/api/v1/graphs/dijkstra \
  -H "Content-Type: application/json" \
  -d '{...}'

# Swagger UI: http://localhost:8000/swagger-ui/

🛠 Installation Methods

Method 1: Cargo (Easiest)

cargo install dsaengine

Requires: Rust 1.70+

Method 2: Pre-built Binaries

Download from GitHub Releases:

  • dsaengine (macOS/Linux)
  • dsaengine.exe (Windows)
  • dsaengine-arm64 (macOS Apple Silicon)

Method 3: From Source

git clone https://github.com/yourusername/dsaengine
cd dsaengine
cargo build --release
# Binary: target/release/dsaengine

🔧 Setup Guides


📝 Commands

# Run MCP stdio server (for agents)
dsaengine --mcp

# Run HTTP web server (for API/testing)
dsaengine

# Generate rules files for agents
dsaengine --install

# Show help
dsaengine --help

🧠 Use Cases

✅ Optimal Algorithm Selection

Ask Cursor/Windsurf to solve algorithmic problems — DSAEngine ensures optimal approach.

✅ Deterministic Recommendations

No randomness, no LLM hallucinations — pure keyword-based algorithm matching.

✅ O(n) → O(log n) Optimization

Catch brute-force approaches and suggest optimal alternatives automatically.

✅ Zero API Cost

Runs completely local — no external API calls, no rate limits.


📊 Performance

MetricValue
Binary Size~25 MB (release build)
Startup Time<100ms
Recommendation Latency<5ms
Memory Usage~50 MB at runtime
Algorithms Available142+

🤝 Contributing

DSAEngine welcomes contributions! See CONTRIBUTING.md for guidelines.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Deterministic MCP server for DSA algorithm selection from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/dsaengine)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools