fortran-mcp
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 12 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .github/workflows/publish-data.yml
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Local MCP server providing curated Fortran documentation for AI-assisted development
Fortran MCP
Use Fortran MCP to improve AI-assisted Fortran development with cited documentation on language features, compiler behavior, build systems, and the wider ecosystem.
It supports lexical search (matching words), semantic search (matching meaning), and hybrid search (combining both), returning relevant passages with source attribution, version information, and links to the original documentation.
Installation
Requires Python 3.11+ and uv.
uv tool install fortran-mcp
Semantic and hybrid search require additional dependencies:
uv tool install "fortran-mcp[semantic]"
Data bundles are installed automatically on first run. You can also install them beforehand to avoid an initial delay:
fortran-mcp data install core # for lexical search
fortran-mcp data install semantic # for semantic and hybrid search
Check installation:
fortran-mcp doctor
Client Setup
Claude CodeUse lexical search (default):
claude mcp add --scope user fortran-mcp -- fortran-mcp
Use semantic search:
claude mcp add --scope user fortran-mcp --env FORTRAN_MCP_SEARCH_PROVIDER=semantic -- fortran-mcp
Use hybrid search:
claude mcp add --scope user fortran-mcp --env FORTRAN_MCP_SEARCH_PROVIDER=hybrid -- fortran-mcp
To change the search mode, remove the existing entry first:
claude mcp remove --scope user fortran-mcp
Codex
Use lexical search (default):
codex mcp add fortran-mcp -- fortran-mcp
Use semantic search:
codex mcp add fortran-mcp --env FORTRAN_MCP_SEARCH_PROVIDER=semantic -- fortran-mcp
Use hybrid search:
codex mcp add fortran-mcp --env FORTRAN_MCP_SEARCH_PROVIDER=hybrid -- fortran-mcp
OpenCode
Use lexical search (default):
opencode mcp add fortran-mcp --global -- fortran-mcp
Use semantic search:
opencode mcp add fortran-mcp --global --env FORTRAN_MCP_SEARCH_PROVIDER=semantic -- fortran-mcp
Use hybrid search:
opencode mcp add fortran-mcp --global --env FORTRAN_MCP_SEARCH_PROVIDER=hybrid -- fortran-mcp
Command reference
| Command | Description |
|---|---|
fortran-mcp |
Start the stdio MCP server. |
fortran-mcp serve |
Start the HTTP server (--host, --port, --path, --allowed-host). |
fortran-mcp doctor |
Show configuration and installed data. Use --json for machine-readable output. |
fortran-mcp data install <package> |
Download and install core or semantic from the release catalog or a local bundle (--catalog, --bundle, --data-dir). |
fortran-mcp data remove <package> |
Remove an installed core or semantic package (--data-dir). |
fortran-mcp data verify |
Verify installed data packages (--data-dir). |
fortran-mcp source list |
List reviewed sources with versions and provenance. Use --json for machine-readable output. |
fortran-mcp source sync <source>... |
Download reviewed sources and rebuild their chunks and lexical index. Accepts one or more source IDs or --all (--data-dir). |
Development
git clone https://github.com/minhqdao/fortran-mcp.git
cd fortran-mcp
uv sync
uv run fortran-mcp
See CONTRIBUTING.md for development and testing instructions.
Sources
Fortran MCP uses a curated collection of Fortran documentation, references,
examples, and tools. Each source is pinned to a specific revision and included
under its applicable license.
New sources should address gaps in coverage or improve retrieval quality on
realistic benchmark questions. They must be legally redistributable and justify
their storage costs and impact on search results.
Public availability alone does not grant redistribution rights, particularly
for standards, books, and vendor manuals.
License
The server software is licensed under the MIT License.
Documentation sources retain their original copyrights and licenses; seedocs/licenses/.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found