It’s always an effective strategy to build from the simplest form for anything, so is applied to build MCP server. Thanks to Matthew Berman, he already posted a clip detailing how he created a “count number of Rs” in a word MCP server and run it in Claude chat box:

Then go to the codes building it:



After we get this app locally hosted up and running, next step is to configure the config json file in Claude setting to let Claude or other interface to know where to call this function tool:
