Skip to main content
Glama

Visum Thinker MCP Server

A Model Context Protocol (MCP) server that provides PTV Visum automation and sequential thinking capabilities for transportation planning and analysis.

🎯 Quick Start

New to Visum automation? β†’ Start here: QUICKSTART_PRT_WORKFLOW.md

AI Assistant integration? β†’ Read: CLAUDE_WORKFLOW_GUIDE.md

Full Documentation? β†’ See: DOCUMENTATION_INDEX.md

Related MCP server: Sequential Story MCP Server

✨ New Features (2025-10-10)

πŸš— Interactive Visum Procedure Creation with Auto-Organization

Create and configure PTV Visum procedures with automatic organization in "Visum-BOT" group:

// 1. Create procedure β†’ Automatic group creation + delete operation
visum_create_procedure({procedureType: "PrT_Assignment"})
// β†’ Returns: 
//   - group_position: 577 (Visum-BOT group)
//   - delete_position: 580 (Initialize Assignment)
//   - actual_position: 581 (PrT Assignment) ⭐ Use this!

// 2. List available demand segments (numbered 1-36)
visum_list_demand_segments()

// 3. Configure with user's choice
visum_configure_dsegset({
  procedurePosition: 581,        // Use actual_position!
  segmentNumbers: "1-10"         // or filterMode: "C", etc.
})

✨ Automatic Features:

  • πŸ“¦ Group Organization: All MCP operations in "Visum-BOT" group

  • πŸ—‘οΈ Auto-Delete: Initialize Assignment added before PrT/PuT assignments

  • πŸ”„ Group Reuse: Subsequent calls add to existing group

  • πŸ“ Smart Positioning: Operations added at end of group

πŸ“– Documentation: See VISUM_BOT_GROUP.md for complete details


**Key Features:**
- βœ… **Automatic position detection** - No manual position tracking
- βœ… **Numbered segment selection** - Easy "1-10" notation instead of long codes
- βœ… **4 flexible input formats** - Numbers, mode filter, ALL keyword, or explicit codes
- βœ… **Interactive workflow** - AI assistants guide users through configuration
- βœ… **Complete validation** - Automatic verification of all configurations

**See [QUICKSTART_PRT_WORKFLOW.md](QUICKSTART_PRT_WORKFLOW.md) for the 3-step workflow!**

## Features

### πŸš— Visum Transportation Planning

- **Procedure Management**: Create PrT/PuT Assignment, Demand Models, Matrix Calculations
- **Demand Segments**: List and configure demand segments with numbered selection
- **Interactive Configuration**: Guide users through DSEGSET setup with 4 input formats
- **Smart Position Tracking**: Automatically track actual procedure positions
- **Complete Validation**: Verify all configurations before execution

### 🧠 Sequential Thinking

- **Step-by-step reasoning**: Break down complex problems into sequential thoughts
- **Dynamic revision**: Revise and refine thoughts as understanding deepens  
- **Branching logic**: Branch into alternative reasoning paths
- **Adaptive planning**: Adjust the total number of thoughts dynamically
- **State management**: Maintain thinking context across multiple tool calls
- **Progress tracking**: Monitor completion status and thought progression

### πŸ“„ PDF Analysis

- **PDF Loading**: Load and analyze PDF documents for problem-solving context
- **Content Search**: Find relevant sections in PDFs based on queries and search terms
- **Persistent Storage**: Auto-save state to disk, survive server restarts
- **Knowledge Transfer**: Export/import thinking sessions between servers

## Installation

### Quick Installation

```bash
# Option 1: Install from NPM
npm install -g visum-thinker-mcp-server

# Option 2: Use with npx (no installation)
npx visum-thinker-mcp-server

# Option 3: Clone from GitHub
git clone https://github.com/yourusername/visum-thinker-mcp-server.git
cd visum-thinker-mcp-server
npm install && npm run build

See INSTALLATION.md for detailed setup instructions.

Prerequisites

  • Node.js 16 or higher

  • npm or yarn

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "visum-thinker": {
      "command": "node",
      "args": ["/absolute/path/to/sequential_thinking/build/index.js"]
    }
  }
}

With VS Code

The project includes a .vscode/mcp.json configuration file for VS Code MCP integration.

Direct Usage

npm run dev

Tools

sequential_thinking

Main tool for step-by-step reasoning process.

Parameters:

  • thought (string): The current thinking step

  • nextThoughtNeeded (boolean): Whether another thought step is needed

  • thoughtNumber (integer): Current thought number

  • totalThoughts (integer): Estimated total thoughts needed

  • isRevision (boolean, optional): Whether this revises previous thinking

  • revisesThought (integer, optional): Which thought is being reconsidered

  • branchFromThought (integer, optional): Branching point thought number

  • branchId (string, optional): Branch identifier

  • needsMoreThoughts (boolean, optional): If more thoughts are needed

load_pdf

Load a PDF file to provide context for analysis.

Parameters:

  • filePath (string): Absolute path to the PDF file

analyze_pdf_section

Analyze specific sections of the loaded PDF.

Parameters:

  • query (string): What to look for or analyze in the PDF

  • startPage (integer, optional): Starting page number (1-based)

  • endPage (integer, optional): Ending page number (1-based)

  • searchTerms (array of strings, optional): Specific terms to search for

reset_thinking

Clears the current thinking state to start fresh.

get_thinking_summary

Returns a summary of the current thinking session including PDF context if loaded.

export_knowledge

Export the current thinking state and PDF knowledge to a file.

Parameters:

  • exportPath (string): Absolute path where to save the exported knowledge file

import_knowledge

Import thinking state and PDF knowledge from an exported file.

Parameters:

  • importPath (string): Absolute path to the exported knowledge file to import

πŸš— Visum Transportation Planning Tools

The server includes comprehensive PTV Visum integration with intelligent path learning:

  • check_visum: Check Visum availability and learn custom installation paths

  • load_visum_model: Load transportation models (.ver files)

  • run_visum_calculation: Execute transportation calculations and analyses

  • get_network_statistics: Analyze network topology and characteristics

  • analyze_visum_matrices: Examine demand and flow matrices

  • export_visum_results: Export analysis results to various formats

Key Features:

  • 🧠 Smart Path Learning: Automatically remembers custom Visum installation paths

  • πŸ”„ Zero Setup: Works seamlessly after initial path discovery

  • 🎯 Demo Mode: Full testing capability without Visum installation

  • πŸ“Š Complete Analysis: All major transportation planning workflows supported

See VISUM-PATH-LEARNING.md for detailed information about the intelligent path learning system.

πŸ€– GitHub Copilot Integration

The Sequential Thinking MCP Server includes comprehensive GitHub Copilot integration for enhanced AI-assisted development:

πŸš€ Quick Start with Copilot

  1. Server Status: Ensure MCP server is running (npm run dev)

  2. Open Copilot Chat: Ctrl+Shift+I in VS Code

  3. Test Integration: Ask @copilot List available MCP tools

  4. Start Solving: @copilot Use sequential thinking to solve [your problem]

🎯 Copilot Capabilities

  • 🧠 Sequential Thinking: AI-guided step-by-step problem solving

  • πŸ“„ PDF Analysis: Intelligent document processing and analysis

  • πŸš— Transportation Planning: Expert Visum integration and workflow automation

  • πŸ”§ Smart Configuration: Automatic Visum path learning and persistence

  • πŸ’‘ Context-Aware Suggestions: Code completion with domain knowledge

πŸ’¬ Example Copilot Interactions

@copilot Can you use sequential thinking to analyze this transportation network problem?

@copilot Check if Visum is available and help me load a network model

@copilot Use the PDF analysis tools to extract data from this traffic report

@copilot Create a complete workflow for transportation demand analysis

See COPILOT-INTEGRATION.md for comprehensive setup and usage guide.

Development

Project Structure

sequential_thinking/
β”œβ”€β”€ src/
β”‚   └── index.ts          # Main server implementation
β”œβ”€β”€ build/                # Compiled JavaScript output
β”œβ”€β”€ .vscode/
β”‚   └── mcp.json         # VS Code MCP configuration
β”œβ”€β”€ .github/
β”‚   └── copilot-instructions.md
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md

Scripts

  • npm run build: Compile TypeScript to JavaScript

  • npm run dev: Build and run the server

  • npm test: Run tests (placeholder)

Debugging

The server logs to stderr for compatibility with STDIO transport. Use VS Code's debugging features or add console.error statements for debugging.

Architecture

The server maintains a global thinking state that tracks:

  • All thoughts in the current session

  • Current progress and estimated completion

  • Revision and branching relationships

  • Session completion status

Each tool call updates this state and provides formatted responses that help users follow the thinking process.

License

MIT

Available Tools

29 tools
get_thinking_summaryB

Get a complete summary of the current thinking session with all steps and analysis

Inputs: no named parameters.

instance_cleanupA

🧹 CLEANUP TOOL: Safely shutdown problematic instances and clean up resources. Use after instance_diagnosis identifies issues.

Inputs: force.

instance_diagnosisA

πŸ”§ DIAGNOSTIC TOOL: Run this first when encountering errors. Diagnoses and repairs existing Visum instances instead of creating new ones.

Inputs: no named parameters.

project_closeC

Close a project TCP server with optional save

Inputs: projectId (required), save.

project_executeC

Execute a command on a project TCP server

Inputs: projectId (required), code (required), description (required).

project_execute_analysisC

Execute intelligent analysis on specific project instance with ultra-fast performance. Automatically generates Python code based on analysis request.

Inputs: projectId (required), analysisRequest (required), returnFormat.

project_export_all_tablesA

πŸ“Š Export all Visum tables (except Network Editor) to CSV files. Each table is saved as ProjectName_TableName.csv in the project directory.

Inputs: projectId (required), maxRowsPerTable.

project_export_graphic_layoutA

πŸ—ΊοΈ Load a Graphic Parameter file (.gpa) and export the network view as PNG/SVG. WORKFLOW: 1) List available .gpa files, 2) User selects layout, 3) Export as PNG (raster) or SVG (vector). Supports paper formats (A5, A4, A3) in landscape or portrait orientation. SVG is vector format (scalable, editable) but requires Visum GUI visible.

Inputs: projectId (required), gpaFile (required), outputFile, format, +5 more.

project_export_visible_tablesA

πŸ“Š Export ONLY tables visible in a Global Layout (.lay file) to CSV files. Maintains exact column order and includes sub-attributes (formula columns). WORKFLOW: 1) List layouts with project_list_available_layouts, 2) User selects layout, 3) Load with project_load_global_layout, 4) Export tables with this tool.

Inputs: projectId (required), layoutFile (required).

project_health_checkC

Check health of specific project instance

Inputs: projectId (required).

project_instances_statusB

Get status of all active project instances

Inputs: no named parameters.

project_list_available_layoutsA

πŸ“‚ List all Global Layout files (.lay) available in the project directory. Shows filename, size, and full path. ALWAYS use this before loading a layout to show available options to the user.

Inputs: projectId (required).

project_load_global_layoutA

🎨 Load a Global Layout (.lay file) into an opened Visum project. The layout file must exist in the project directory or provide full path. ALWAYS use project_list_available_layouts first to show available options to the user.

Inputs: projectId (required), layoutFile (required).

project_openA

πŸš€ DEFAULT TOOL for opening Visum projects. Always use this tool when asked to open, load, or launch any Visum project. Creates dedicated TCP server for ultra-fast communication. ⚠️ If you encounter errors, run 'instance_diagnosis' first!

Inputs: projectPath (required).

project_saveC

Save the currently opened project in its TCP server

Inputs: projectId (required), saveAs.

project_shutdown_instanceC

Shutdown specific project instance

Inputs: projectId (required).

project_start_instanceC

Start dedicated persistent instance for specific Visum project

Inputs: projectId (required).

project_statusB

Get status of all active project TCP servers

Inputs: no named parameters.

reset_thinkingB

Clear the current thinking session and start fresh

Inputs: no named parameters.

sequential_thinkingC

Engage in systematic step-by-step thinking to analyze complex problems, make decisions, or explore ideas. Each thought builds on the previous ones, creating a chain of reasoning.

Inputs: thought (required), reasoning, category, revise_step, +3 more.

visum_check_assignmentA

πŸ” Verify if a PrT assignment has been executed successfully. Checks for volume data on links. Returns total volume, number of links with traffic, and confirms assignment completion.

Inputs: projectId (required), analysisPeriod.

visum_configure_dsegsetA

βš™οΈ Configure demand segments (DSEGSET) on a PrT Assignment procedure. Use visum_list_demand_segments first to see available segments. Accepts segment codes OR numbers from the numbered list.

Inputs: projectId (required), procedurePosition (required), dsegset, segmentNumbers, +2 more.

visum_create_procedureC

🎯 Create a Visum procedure (PrT Assignment, PuT Assignment, etc.) using the verified Visum API. This tool uses the correct visum.Procedures.Operations.AddOperation() method discovered on 2025-10-10.

Inputs: projectId (required), procedureType (required), position, parameters.

visum_custom_analysisC

Execute custom Python code with access to the active Visum instance

Inputs: pythonCode (required), description.

visum_health_checkB

Check the health and status of the VisumPy instance

Inputs: no named parameters.

visum_launch_projectA

⚠️ DEPRECATED: Use 'project_open' tool instead. This tool is obsolete and slower than the new TCP-based project_open tool.

Inputs: projectPath (required).

visum_list_demand_segmentsA

πŸ“‹ List all available demand segments for PrT (Private Transport) modes in the loaded Visum project. Use this before configuring DSEGSET on a procedure.

Inputs: projectId (required), filterMode.

visum_network_analysisB

Analyze the loaded Visum network with detailed statistics and performance metrics

Inputs: includeGeometry, sampleSize.

visum_network_statsB

Get comprehensive network statistics from the loaded Visum project

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 29 tools

    Disambiguation3/5

    The tool set has clear groupings (project, visum, thinking), but within groups there is significant overlap. For example, project_open, project_start_instance, and visum_launch_project (deprecated) all seem to open projects, while project_health_check, project_instances_status, and visum_health_check have overlapping diagnostic purposes. The descriptions help differentiate, but an agent could easily misselect tools.

    Naming Consistency4/5

    Most tools follow a consistent snake_case pattern with clear prefixes (project_, visum_, get_, reset_, sequential_, instance_). However, there are minor deviations like visum_launch_project (deprecated) vs. project_open, and some tools use emojis or all caps in descriptions but not in names. Overall, the naming is predictable and readable.

    Tool Count2/5

    With 29 tools, the count feels excessive for a Visum-focused server. Many tools appear redundant or overly specific (e.g., multiple export and diagnostic tools), suggesting the surface could be consolidated. This large number may overwhelm agents and increase the risk of misselection.

    Completeness4/5

    The tool set covers core Visum operations comprehensively, including project management, data export, network analysis, and procedure configuration. Minor gaps exist, such as limited editing capabilities for projects or procedures, but agents can perform most essential workflows without dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enhances AI model capabilities with structured, retrieval-augmented thinking processes that enable dynamic thought chains, parallel exploration paths, and recursive refinement cycles for improved reasoning.
      1
      24
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides tools for structuring complex problems through narrative-based sequential story elements or systematic sequential thinking, helping make complex problems more memorable and easier to understand.
      15
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      An enhanced sequential thinking tool optimized for programming tasks that helps break down complex coding problems into structured, self-auditing thought steps with branching and revision capabilities.
      1
      83 npm
      257
      MIT