Skip to main content

cobol-mcp-client

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

Quick Start

uvx --from cobol-mcp-client cobol-mcp setup YOUR_API_KEY

This launches an interactive wizard to select which IDEs to configure. Use arrow keys to navigate, Enter to select, and Enter on "Proceed" to confirm.

Direct Install (skip prompts)

uvx --from cobol-mcp-client cobol-mcp setup YOUR_API_KEY --ide cursor
uvx --from cobol-mcp-client cobol-mcp setup YOUR_API_KEY --ide claude-code

List Supported IDEs

uvx --from cobol-mcp-client cobol-mcp list-ides

Supported: cursor, claude-code, claude-desktop, vscode, windsurf, amp, zed, cline, continue, roo-code

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, IBM CICS, and Micro Focus 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

Dialects & Documentation Coverage

Source Coverage
GnuCOBOL 3.x Programmer's Guide, Quick Reference, Sample Programs
IBM Enterprise COBOL 6.x Full language reference
IBM CICS TS EXEC CICS commands, transaction processing
Micro Focus Visual COBOL Developer's Guide, Application Modernization Tools
Dialect comparison guides Cross-dialect syntax differences

Static Analysis Rules

Category Rules Examples
General COBOL 5 Missing FILE STATUS, uninitialized variables, missing STOP RUN, arithmetic overflow
File I/O 4 WRITE target validation, file mode checks, FILE STATUS binding
IMS DL/I 25+ DL/I function codes, PCB validation, status code handling, GSAM, checkpoint/restart, SSA validation

Manual Configuration

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

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

Config file locations (macOS):

IDE Path
Cursor ~/.cursor/mcp.json
Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json
VS Code ~/Library/Application Support/Code/User/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Zed ~/.config/zed/settings.json (uses context_servers key)
Cline ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Continue ~/.continue/config.json (uses experimental.modelContextProtocolServers)
Roo Code ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json

For Claude Code and Amp, use the CLI setup command — they configure via their own mcp add commands.

Environment Variables

Variable Required Description
COBOL_MCP_API_KEY Yes API key from cobolmcp.com
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.

Metadata

Release files for cobol-mcp-client 0.1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cobol-mcp-client 0.1.17
File Size Uploaded Provenance
cobol_mcp_client-0.1.17.tar.gz 135.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cobol-mcp-client 0.1.17
File Interpreter ABI Platform
cobol_mcp_client-0.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 201.4 kB

Release files / cobol_mcp_client-0.1.17.tar.gz

Download URL cobol_mcp_client-0.1.17.tar.gz
Size 135.4 kB
Tags Source
SHA-256 checksum
How to use checksums
acd0c512088d56d01097fa42211d99e4a560463a57b3f1dfb75e4a371985e784
BLAKE2b-256 checksum
How to use checksums
c698c3b56708bb67f663c2b5e50a755bca9c0d060308ab22abffe2b6ee09d59a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 24, 2026.

Transparency log

Release files / cobol_mcp_client-0.1.17-py3-none-any.whl

Download URL cobol_mcp_client-0.1.17-py3-none-any.whl
Size 66.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de5cc1030eb2f9c69c1a79743e07c7af6aa4df768538c0ee299afcf903f7cdc
BLAKE2b-256 checksum
How to use checksums
850617377d176b3eb5dc9bd554eef66a9ae94cfb46eaef41d14840a556b968cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 24, 2026.

Transparency log

Security for cobol-mcp-client 0.1.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cobol_mcp_client-0.1.17.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page