So far this has worked well: https://github.com/modelcontextprotocol/python-sdk
Discussion
I tried it and it's easy enough, but I failed when I tried to configure ollama in a way so that it would recognize the MCP server I wrote.
Have you tried using the MCP inspector? When I built my server it made debugging easier.