ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Discrete Structures

โดย ZohaibCodezรุ่น 0.1.4i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ZohaibCodez/discrete-structures

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Comprehensive tools for discrete mathematics: logic, algorithms, number theory, cryptography

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "discrete-structures": {
      "command": "uvx",
      "args": [
        "discrete-structures-mcp"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add discrete-structures -- uvx discrete-structures-mcp

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "discrete-structures": {
      "command": "uvx",
      "args": [
        "discrete-structures-mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "discrete-structures": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "discrete-structures-mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ZohaibCodez ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32583 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 1% ของอีก 32583 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32583 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Discrete Structures ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.4) เข้า registry 10 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, sync. labs

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

sync. labs

โดย synchronicity-labs

Lipsync videos, dub them into other languages, make talking videos and open sync. Studio.

บนเครื่องหรือคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

🎓 Discrete Structures MCP Server

Professional-grade AI tools for discrete mathematics, algorithms, and cryptography

Installation • Features • Quick Start • Documentation • Examples


🚀 Overview

Discrete Structures MCP Server is a comprehensive Model Context Protocol server that brings 21 powerful mathematical tools to AI assistants like Claude Desktop, Cline, and Zed. Perfect for students, educators, and developers working with discrete mathematics, data structures, algorithms, and cryptography.

Why Choose This Server?
  • 🎯 21 Production-Ready Tools across 4 categories
  • 📚 Educational Focus with step-by-step visualizations
  • 🔒 Enterprise Cryptography (RSA, AES, Caesar, Vigenere)
  • 📊 Algorithm Visualizations for sorting and graph algorithms
  • 🧮 Boolean Logic with CNF/DNF conversion
  • 🔢 Number Theory including prime factorization and modular arithmetic
  • ⚡ Fast Installation via uvx discrete-structures-mcp
  • 🌐 MCP Registry Listed for easy discovery

✨ Features

🧮 Logic Tools (5 tools)
  • `evaluate_boolean` - Evaluate boolean expressions with truth tables
  • `generate_truth_table` - Complete truth table generation
  • `simplify_boolean` - Boolean algebra simplification
  • `convert_to_cnf` - Conjunctive Normal Form conversion
  • `convert_to_dnf` - Disjunctive Normal Form conversion
🔢 Number Theory Tools (5 tools)
  • `is_prime` - Primality testing with explanations
  • `prime_factors` - Complete prime factorization
  • `gcd_lcm` - Greatest Common Divisor & Least Common Multiple
  • `modular_arithmetic` - Modular operations (add, multiply, power)
  • `euler_totient` - Euler's φ function calculation
📊 Algorithm Visualizers (6 tools)
  • `visualize_bubble_sort` - O(n²) sorting with comparisons
  • `visualize_quick_sort` - O(n log n) divide-and-conquer
  • `visualize_merge_sort` - Stable merge sort visualization
  • `visualize_binary_search` - O(log n) search algorithm
  • `visualize_dijkstra` - Shortest path in weighted graphs
  • `visualize_bfs_dfs` - Graph traversal algorithms
🔐 Cryptography Tools (5 tools)
  • `caesar_cipher` - Classical shift cipher (educational)
  • `vigenere_cipher` - Polyalphabetic substitution
  • `rsa_encrypt_decrypt` - RSA public-key cryptography
  • `aes_encrypt_decrypt` - AES-256 symmetric encryption
  • `generate_rsa_keys` - Secure RSA key pair generation

📦 Installation

⚡ Quick Install (Recommended)
# Install and run directly with uvx

uvx discrete-structures-mcp

📥 Install with pip
# Install globally

pip install discrete-structures-mcp

Run the server

discrete-structures-mcp

🛠️ Development Installation
# Clone the repository

git clone https://github.com/ZohaibCodez/discrete-structures-ai-platform.git cd discrete-structures-ai-platform/mcp-server

Install with uv

uv sync

Run locally

uv run discrete-structures-mcp

🎯 Quick Start

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{

"mcpServers": { "discrete-structures": { "command": "uvx", "args": ["discrete-structures-mcp"] } } }

Usage with Other MCP Clients

Compatible with any MCP client:

  • [Cline](https://github.com/cline/cline) - VS Code extension
  • [Zed](https://zed.dev/) - Modern code editor
  • [Continue](https://continue.dev/) - AI code assistant
  • Custom MCP clients via Python SDK

💻 Example Tool Calls

from mcp.client.session import ClientSession

from mcp.client.stdio import StdioServerParameters, stdio_client

server_params = StdioServerParameters( command="uvx", args=["discrete-structures-mcp"] )

async with stdio_client(server_params) as (read, write): async with ClientSession(read, write) as session: await session.initialize()

List available tools

tools = await session.list_tools() print([tool.name for tool in tools.tools])

Call a tool

result = await session.call_tool("gcd_lcm", {"numbers": "48,18"}) print(result)

💻 Example Tool Calls

🔢 Number Theory Examples
Calculate GCD and LCM
# Find greatest common divisor and least common multiple

result = await session.call_tool("gcd_lcm", { "numbers": "48,18,24" })

Output: {"gcd": 6, "lcm": 144, "explanation": "..."}

Prime Factorization
result = await session.call_tool("prime_factors", {

"number": "84" })

Output: {"factors": [2, 2, 3, 7], "factorization": "2² × 3 × 7"}

Modular Arithmetic
result = await session.call_tool("modular_arithmetic", {

"operation": "power", "base": "3", "exponent": "5", "modulus": "7" })

Output: {"result": 5, "explanation": "3^5 mod 7 = 5"}

🧮 Boolean Logic Examples
Generate Truth Table
result = await session.call_tool("generate_truth_table", {

"expression": "(A & B) | (~A & C)" })

Returns: Complete truth table with all input combinations

Simplify Boolean Expression
result = await session.call_tool("simplify_boolean", {

"expression": "(A & B) | (A & ~B)" })

Output: {"simplified": "A", "steps": ["..."]}

Convert to CNF
result = await session.call_tool("convert_to_cnf", {

"expression": "(A | B) & (C | D)" })

Output: Expression in Conjunctive Normal Form

📊 Algorithm Visualization Examples
Visualize Bubble Sort
result = await session.call_tool("visualize_bubble_sort", {

"array": "64,34,25,12,22,11,90" })

Returns: Step-by-step sorting with comparisons and swaps

Binary Search
result = await session.call_tool("visualize_binary_search", {

"array": "1,3,5,7,9,11,13,15", "target": "7" })

Output: Search path with index calculations

Dijkstra's Algorithm
result = await session.call_tool("visualize_dijkstra", {

"graph": "A-B:4,A-C:2,B-C:1,B-D:5,C-D:8", "start": "A", "end": "D" })

Returns: Shortest path with distances

🔐 Cryptography Examples
RSA Encryption
# Generate keys

keys = await session.call_tool("generate_rsa_keys", { "key_size": "2048" })

Encrypt message

encrypted = await session.call_tool("rsa_encrypt_decrypt", { "action": "encrypt", "message": "Hello World", "public_key": keys["public_key"] })

Decrypt message

decrypted = await session.call_tool("rsa_encrypt_decrypt", { "action": "decrypt", "ciphertext": encrypted["ciphertext"], "private_key": keys["private_key"] })

AES Encryption
result = await session.call_tool("aes_encrypt_decrypt", {

"action": "encrypt", "text": "Sensitive Data", "key": "my-secret-key-32-characters-long" })

Output: {"ciphertext": "...", "iv": "...", "tag": "..."}

Caesar Cipher
result = await session.call_tool("caesar_cipher", {

"action": "encrypt", "text": "HELLO", "shift": "3" })

Output: {"result": "KHOOR", "explanation": "Each letter shifted by 3"}

🎓 Use Cases

  • Computer Science Education - Teach algorithms and data structures
  • Cryptography Learning - Understand encryption methods
  • Mathematics Research - Number theory and discrete math
  • Algorithm Analysis - Visualize complexity and performance
  • Code Interviews - Practice common algorithmic problems
  • Academic Projects - Implement mathematical concepts

🏗️ Technical Stack

  • Language: Python 3.11+
  • Framework: Model Context Protocol (MCP)
  • Math Libraries: SymPy, NumPy
  • Crypto: Python Cryptography library
  • Graphs: NetworkX
  • Build: UV package manager

📊 Performance

  • Startup Time: < 2 seconds
  • Response Time: < 100ms for most operations
  • Memory: < 50MB baseline
  • Concurrency: Async/await support

🔒 Security Note

Educational Purpose: Caesar and Vigenere ciphers are for learning only. Use AES or RSA for real-world encryption.

🤝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links & Resources

Official Links
Community
  • 💬 Discussions: GitHub Discussions
  • 📢 Announcements: Watch repository for updates
  • 🤝 Contributing: See contribution guide
MCP Resources

📈 Project Stats

🙏 Acknowledgments

  • Model Context Protocol team at Anthropic
  • SymPy and NumPy communities
  • Python Cryptography developers
  • NetworkX graph library maintainers
  • All contributors and users

📞 Support

  • 📧 Email: Open an issue for support
  • 💬 Discussions: Use GitHub Discussions
  • 🐛 Bugs: Report via Issues
  • 💡 Features: Request via Issues with enhancement label

Made with ❤️ for the discrete mathematics and computer science community

⭐ Star this repo if you find it useful! ⭐

Report Bug · Request Feature · Contribute

ถาม PopNx