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
Automatic Setup (Recommended) ✨
pipx run cobol-mcp-client setup YOUR_API_KEY
This automatically configures Cursor. For other IDEs:
pipx run cobol-mcp-client setup YOUR_API_KEY --ide claude-desktop
pipx run cobol-mcp-client setup YOUR_API_KEY --ide vscode
pipx run cobol-mcp-client setup YOUR_API_KEY --ide windsurf
pipx run cobol-mcp-client setup YOUR_API_KEY --ide amp
List all supported IDEs:
pipx run cobol-mcp-client list-ides
Manual Setup
If you prefer manual configuration, add to your IDE's MCP config:
{
"mcpServers": {
"cobol": {
"command": "uvx",
"args": ["cobol-mcp-client"],
"env": {
"COBOL_MCP_API_KEY": "your-api-key"
}
}
}
}
Config file locations:
- Cursor:
~/.cursor/mcp.json - Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) - VS Code:
~/.vscode/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json
What It Does
Three capabilities exposed as MCP tools/resources:
-
check- Static analysis of COBOL source code. Runs 30+ rules covering general COBOL issues (unused variables, missing FILE STATUS, arithmetic without ON SIZE ERROR) and IMS-specific patterns (missing status checks, GB handling, SSA correctness, checkpoint discipline). -
search- Hybrid semantic + keyword search across COBOL documentation. Queries a backend API that performs dense vector search, sparse BM25 search, and reranking. -
translate_reference- COBOL-to-Java translation patterns and guidance. -
Resources -
cobol://context,cobol://rules,cobol://gnucobolfor reference documentation.
Configuration
| Variable | Required | Description |
|---|---|---|
COBOL_MCP_API_KEY |
Yes | API key for documentation search |
COBOL_MCP_API_URL |
No | Backend API URL (defaults to production) |
Architecture
cobol_mcp/
├── server.py # FastMCP server entry point
├── cli.py # CLI for setup command
├── setup.py # IDE configuration utilities
├── tools/
│ ├── check.py # Invokes rules engine on source text
│ ├── search.py # HTTP proxy to backend search API
│ └── translate.py # Translation reference lookup
├── rules/
│ ├── parser.py # COBOL structure extractor
│ ├── general.py # General COBOL rules (COB-001 through COB-005)
│ ├── ims.py # IMS-specific rules (IMS-001 through IMS-170)
│ ├── lookup.py # Rule documentation lookup
│ └── models.py # Finding dataclass
└── resources/
├── context.md # Dialect context guide
├── rules.md # Full rule documentation
├── gnucobol.md # GnuCOBOL compiler reference
└── translate/ # Translation reference files
Development
pip install -e .
python -m pytest tests/ -v # 412 tests
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.3.tar.gz.
File metadata
- Download URL: cobol_mcp_client-0.1.3.tar.gz
- Upload date:
- Size: 133.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87bfab40969bb14a1bcdc499cc165f7bee3d112538ff148997d7bb2ee1ed9d9
|
|
| MD5 |
f5f8c96ca1ad096a754b13b60cf53dac
|
|
| BLAKE2b-256 |
1c4b20d2363d385c982c1a73c7b643de9c293479741b4c103b27c261cdd835fc
|
Provenance
The following attestation bundles were made for cobol_mcp_client-0.1.3.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.3.tar.gz -
Subject digest:
b87bfab40969bb14a1bcdc499cc165f7bee3d112538ff148997d7bb2ee1ed9d9 - Sigstore transparency entry: 849018372
- Sigstore integration time:
-
Permalink:
haladir-ai/cobol-mcp-client@8940adf8bfdadfcda0a41f25631df3a2406360d0 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/haladir-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8940adf8bfdadfcda0a41f25631df3a2406360d0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cobol_mcp_client-0.1.3-py3-none-any.whl.
File metadata
- Download URL: cobol_mcp_client-0.1.3-py3-none-any.whl
- Upload date:
- Size: 62.4 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 |
ffbe0cb08e0d3cda0a5974349f3b123c89db7f87e144a8093fd0f65983407065
|
|
| MD5 |
25f66519d42ddee832205fd1381f2981
|
|
| BLAKE2b-256 |
3815d09eaaab13bf4b6e91e41b81bfe3b1c638e9f5a833822323f66e1e80e44d
|
Provenance
The following attestation bundles were made for cobol_mcp_client-0.1.3-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.3-py3-none-any.whl -
Subject digest:
ffbe0cb08e0d3cda0a5974349f3b123c89db7f87e144a8093fd0f65983407065 - Sigstore transparency entry: 849018393
- Sigstore integration time:
-
Permalink:
haladir-ai/cobol-mcp-client@8940adf8bfdadfcda0a41f25631df3a2406360d0 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/haladir-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8940adf8bfdadfcda0a41f25631df3a2406360d0 -
Trigger Event:
release
-
Statement type: