Skip to main content

COBOL MCP server with hybrid search and blind-spot detection

Project description

cobol-mcp-client

An MCP (Model Context Protocol) server for COBOL development assistance. Provides static analysis with blind-spot detection and hybrid documentation search.

Quick Start

pipx run cobol-mcp-client setup YOUR_API_KEY

This launches an interactive wizard where you select which IDEs to configure:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 2: Select IDEs to configure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   1. cursor
   2. claude-desktop
   3. vscode
   4. windsurf
   5. amp
   6. zed
   7. cline
   8. continue
   9. roo-code

   a. All IDEs
   q. Quit

Enter numbers separated by spaces (e.g., 1 3 5) or 'a' for all:

Direct Install (skip prompts)

pipx run cobol-mcp-client setup YOUR_API_KEY --ide cursor
pipx run cobol-mcp-client setup YOUR_API_KEY --ide claude-desktop

List Supported IDEs

pipx run cobol-mcp-client list-ides

What It Does

Three tools exposed via MCP:

Tool Description
check(file_path) Static analysis of COBOL source files. Runs 30+ rules covering FILE STATUS, uninitialized variables, missing STOP RUN, arithmetic overflow, and IMS DL/I issues.
search(query) Hybrid semantic + keyword search across GnuCOBOL, IBM Enterprise COBOL, CICS, and Visual COBOL documentation.
translate_reference(topic) COBOL-to-Java translation patterns for data types, control flow, file I/O, CICS, DB2, and more.

Resources available:

  • cobol://context — Dialect differences and search tips
  • cobol://rules — Full rule documentation
  • cobol://gnucobol — GnuCOBOL compiler reference

Manual Configuration

If you prefer to configure manually, add to your IDE's MCP config:

{
  "mcpServers": {
    "cobol": {
      "command": "uvx",
      "args": ["--from", "cobol-mcp-client", "cobol-mcp"],
      "env": {
        "COBOL_MCP_API_KEY": "your-api-key"
      }
    }
  }
}

Config file locations:

IDE Path
Cursor ~/.cursor/mcp.json
Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json
VS Code ~/.vscode/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Zed ~/.config/zed/settings.json

Environment Variables

Variable Required Description
COBOL_MCP_API_KEY Yes API key for documentation search
COBOL_MCP_API_URL No Backend API URL (defaults to production)

Development

git clone https://github.com/haladir-ai/cobol-mcp-client
cd cobol-mcp-client
pip install -e .
python -m pytest tests/ -v

License

Proprietary.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobol_mcp_client-0.1.16.tar.gz (134.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cobol_mcp_client-0.1.16-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file cobol_mcp_client-0.1.16.tar.gz.

File metadata

  • Download URL: cobol_mcp_client-0.1.16.tar.gz
  • Upload date:
  • Size: 134.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cobol_mcp_client-0.1.16.tar.gz
Algorithm Hash digest
SHA256 3bb9c2cba5955fd592f6e92c443e3ddee7d11cacc2abde2f4dd223f65ac002b2
MD5 65e9dc3af372a222d8b937a36ecde05c
BLAKE2b-256 bd2af7dea0521838744ba74b46abb306f1aa4d012726dac73c82cc3eecfdfa2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cobol_mcp_client-0.1.16.tar.gz:

Publisher: publish.yml on haladir-ai/cobol-mcp-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cobol_mcp_client-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for cobol_mcp_client-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 afd03d89123e0e8832f0ff1810365f0be646fb21e2d1d308b767ab2192cec73d
MD5 e9a296b4f83a1b961c6e53bf043a4970
BLAKE2b-256 d1bd6090aafb94ba9a4787df1b22f921088597eea9937d3f64d4cb9d9060f681

See more details on using hashes here.

Provenance

The following attestation bundles were made for cobol_mcp_client-0.1.16-py3-none-any.whl:

Publisher: publish.yml on haladir-ai/cobol-mcp-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page