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 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 tipscobol://rules— Full rule documentationcobol://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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cobol_mcp_client-0.1.17.tar.gz.
File metadata
- Download URL: cobol_mcp_client-0.1.17.tar.gz
- Upload date:
- Size: 135.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd0c512088d56d01097fa42211d99e4a560463a57b3f1dfb75e4a371985e784
|
|
| MD5 |
dc85f349b6a9e90432208b019a61af71
|
|
| BLAKE2b-256 |
c698c3b56708bb67f663c2b5e50a755bca9c0d060308ab22abffe2b6ee09d59a
|
Provenance
The following attestation bundles were made for cobol_mcp_client-0.1.17.tar.gz:
Publisher:
publish.yml on haladir-ai/cobol-mcp-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobol_mcp_client-0.1.17.tar.gz -
Subject digest:
acd0c512088d56d01097fa42211d99e4a560463a57b3f1dfb75e4a371985e784 - Sigstore transparency entry: 850140520
- Sigstore integration time:
-
Permalink:
haladir-ai/cobol-mcp-client@3329ffab61c47c1238689cfe04a70b3073acb4ec -
Branch / Tag:
refs/tags/v0.1.17 - Owner: https://github.com/haladir-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3329ffab61c47c1238689cfe04a70b3073acb4ec -
Trigger Event:
release
-
Statement type:
File details
Details for the file cobol_mcp_client-0.1.17-py3-none-any.whl.
File metadata
- Download URL: cobol_mcp_client-0.1.17-py3-none-any.whl
- Upload date:
- Size: 66.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de5cc1030eb2f9c69c1a79743e07c7af6aa4df768538c0ee299afcf903f7cdc
|
|
| MD5 |
876d8bfa330cc13f92d95a9bbb140f9c
|
|
| BLAKE2b-256 |
850617377d176b3eb5dc9bd554eef66a9ae94cfb46eaef41d14840a556b968cd
|
Provenance
The following attestation bundles were made for cobol_mcp_client-0.1.17-py3-none-any.whl:
Publisher:
publish.yml on haladir-ai/cobol-mcp-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobol_mcp_client-0.1.17-py3-none-any.whl -
Subject digest:
5de5cc1030eb2f9c69c1a79743e07c7af6aa4df768538c0ee299afcf903f7cdc - Sigstore transparency entry: 850140522
- Sigstore integration time:
-
Permalink:
haladir-ai/cobol-mcp-client@3329ffab61c47c1238689cfe04a70b3073acb4ec -
Branch / Tag:
refs/tags/v0.1.17 - Owner: https://github.com/haladir-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3329ffab61c47c1238689cfe04a70b3073acb4ec -
Trigger Event:
release
-
Statement type: