I’ve been working on Fortran MCP, a local MCP server that provides a curated collection of documentation, guides, and technical references for Fortran development.
It lets AI coding assistants search documentation on Fortran language features, compiler behavior, build systems, and related tools. It supports lexical search (matching words), semantic search (matching meaning), and hybrid search (combining both). For the semantic search, the documentation sources were split into chunks and converted into vector embeddings. Results link back to the original sources.
The current collection includes:
Fortran Package Manager documentation
Fortran Standard Library documentation
GNU Fortran Compiler manual
CMake documentation for Fortran projects
Fortran-lang guides and references
OpenMP Fortran examples
GNU Make manual
NumPy F2PY documentation
Fypp documentation
Open MPI Fortran routine reference
Fortitude linter documentation
Codee Open Catalog
Old programming idioms explained
PRIMA modernization case study
Beliavsky’s list of fpm-compatible Fortran projects
The server runs locally and works with MCP-compatible clients such as Claude Code and Codex.
Tip: AI clients don’t always use MCP tools automatically. If you want answers grounded in Fortran MCP’s documentation, explicitly ask your assistant to use the Fortran MCP server.
The project is open source under the MIT license. If you spot gaps in the current coverage or know of other useful Fortran resources, let me know and I’d be happy to look into adding them.
My projects auto-generate a flat text compilation of their documentation automatically. One of general interest might be descriptions of many of the intrinsics, each containing an example program?
I think that is less trivial than it may sound, as it is something like 350 pages printed and intentionally goes into more detail than most intrinsic descriptions. Think of it as the unabridged version.
A gap in the current coverage: updating the Lfortran manual. (The compiler is being updated very fast, both with new features arriving and with old bugs being killed. For example, I found out that it had 80- and 128-bit real kinds only by seeing bug reports on their use, but I can’t find them in the manual.)
I would like to suggest adding the “Codee documentation” (docs.codee.com). This is the official codee documentation (no other documentation or PDFs are shipped with the tool) and it is constantly updated with new features, QuickStarts,… of both the Codee Formatter and the Codee Analyzer.