Worked on this project since 2019 as a Python library built out of the idea that if you simply browse online for metrics such as a P/E you will find different values on each website. The idea is that this library has all variations of each formula so that you can just ask which version you are interested in. Comes with a connector through FinancialModelingPrep and Yahoo Finance so it can be used for free but also paid through FMP. By now it has grown to be used by quite a few people which triggered me to build a MCP around it too. Instructions are on the website which has both local and remote access, whatever you prefer but in short remote is connecting to
https://financetoolkit.jeroenbouma.com/mcp and locally, you can run uvx --from "financetoolkit[mcp]" financetoolkit-mcp-setup