I’ve been building advancedmortgagecalculator.my lately – a simulation engine focused on Malaysian banks’ mortgages, predicting interest charges, payments, and savings over the life of the loan. It got me thinking about how people are going to find my service – social media, search engines, links in a catalogue – but increasingly, it’s going to be AI agents like ChatGPT perusing the web on a human’s behalf. So the question:
If I want an AI agent to discover my web app, understand what it does, operate correctly, and interpret the result – what do I need to do?
That sent me down a surprisingly deep rabbit hole: first making sure agents could crawl the site at all, then giving them cleaner context with llms.txt and Markdown, then exposing the calculator through MCP, figuring out how that MCP server could be discovered, and finally experimenting with WebMCP so an agent could operate the live page itself. Along the way I also ran into a less technical question: if an agent can do everything for the user, where does that leave the website — and the ad revenue keeping it alive?
I know I went really hard in the opposite direction of most people (the “ban AI from my content” camp), but I hope to assure you it makes sense after this.
First Blocker: Cloudflare’s Managed robots.txt
The first thing I realised when asking ChatGPT to visit my website is that it says it is blocked. This is really strange, as I had already set a very permissive robots.txt:
User-agent: *Allow: /Sitemap: https://advancedmortgagecalculator.my/sitemap.xml
That basically signals to bots: “here’s my website, go nuts”.
Then I actually went there and realised Cloudflare had its “fully managed robots.txt” enabled on my zone, modifying my robots.txt.
Fortunately, this is easy to turn off.
I can understand where they are coming from with all the fear that AI is going to mine all the world’s information and sell it at a markup, but it is still annoying.
Explaining the Site to Agents: llms.txt
llms.txt is a proposed convention for a HOWTO guide for AI agents. You help agents discover and understand the website, as well as show them how to operate it. Here’s a snippet of what I have for my website:
Advanced Mortgage Calculator Malaysia Model how changing rates, extra payments, fees, disbursements and redraws affect a Malaysian home loan, using bank-specific schedules and EPF or fixed-deposit comparisons.Canonical site: https://advancedmortgagecalculator.my/ Main tools Mortgage repayment calculatorhttps://advancedmortgagecalculator.my/ Guideshttps://advancedmortgagecalculator.my/guides — usage, extra-payment, interest-rate, EPF, and statement-import guides Abouthttps://advancedmortgagecalculator.my/about — calculation scope and limitationsMalay pages use /ms/; Simplified Chinese pages use /zh/. Calculator settings are shareable in the page query string.
If your website has an MCP server, this is where you could point it out to the agent as well; there are more proposed conventions as well (more on that when I talk about MCP discovery).
Perhaps you may be wondering: “MCP server?! Isn’t this a mortgage calculator?”. I will answer that later as well.
Markdown for Agents
I saw that this “Markdown for Agents” is a paid feature in Cloudflare. Basically, you request with the Accept: text/markdown HTTP header and your server returns markdown instead of HTML:
curl -H 'Accept: text/markdown' https://advancedmortgagecalculator.my/about
---title: About Advanced Mortgage Calculatordescription: Why this Malaysian mortgage calculator models bank-specific interest calculations, changing rates, fees, disbursements, extra payments and EPF comparisons.image: https://advancedmortgagecalculator.my/assets/seo-social.pngWhy this exists FidelityI built this calculator because a home loan should be modelled as the bank actually treats it, not reduced to a convenient monthly-payment formula....
When I saw this I thought:
My content is already written in markdown and compiled to HTML – why do I need you to compile it back to markdown for me? I’ll add support myself.
Then it turns out I just did exactly what Cloudflare did and compiled the compiled HTML back into Markdown.
And the reason is simply that some of my Markdown files have HTML inside to support jump links and custom styling:
<header><h1>Mortgage Calculator Guide</h1><p class="page-intro">Learn how to model your Malaysian home loan, interest-rate changes, extra payments, EPF and FD returns and bank statements.</p><nav class="guide-jump" aria-label="On this page"><a href="#getting-started">Getting started</a> · <a href="#opr-sbr-rate-change">Interest rates</a> · <a href="#bank-selection">Banks</a> · <a href="#import-bank-statement">Bank statements</a> · <a href="#extra-payments">Extra payments</a> · <a href="#epf-vs-home-loan">EPF</a> · <a href="#fd-vs-home-loan">Fixed deposit</a> · <a href="#ai-assistants">AI assistants</a> · <a href="#statement-differences">Statement differences</a></nav></header><h2 id="getting-started">How do I use the mortgage calculator?</h2>Enter your loan amount, interest rate and loan term. That is enough to see a repayment schedule.
Well, not a big deal – and also not sure if it was even worth doing, since agents like VS Code Copilot’s Fetch tool already converts fetched webpages to Markdown by itself anyway. At that point, I just thought I’d already done it, so whatever.
MCP Server
Now to the more questionable part of my journey: I implemented an MCP server for advancedmortgagecalculator.my. MCP — Model Context Protocol — is an open protocol that lets AI applications connect to external tools and data.
“Sounds crazy! Why is that even necessary?” – perhaps you may think, I think.
Because filling in the inputs is not trivial.
The mortgage calculator is not called “advanced” without reason; it replicates (or tries its best to) the individual transactions down to the last cent. This means requiring users to know when their interest rate changed, what extra payments were made, when fire insurance is charged, withdrawals from the redraw account, disbursements – which may easily overwhelm the casual user.
I’ve tried to make it easier by allowing users to upload their bank statements and filling in for them, but that has been quite complicated to implement, requires a lot of trust, and easily breaks when banks change their statements.
But what if an agent can just fill in the cumbersome details for you?
Suppose a user is comparing a loan between two banks. Hypothetically, he can simply say:
Compare a RM500,000 Maybank home loan over 30 years with and without a RM500 monthly extra payment.
And the AI agent would respond something like:
Using the MCP server with a 3.8% annual rate, starting 1 September 2026:
Scenario Monthly Payment Payoff Date Total Interest No extra payment RM2,329.79 June 2056 RM333,746.95 RM500 extra monthly RM2,829.79 total March 2048 RM230,211.14 The RM500 extra payment pays off the loan about 8 years and 3 months earlier and saves approximately RM103,535.81 in interest.
I’m not making this up, by the way. That is an unedited response from GPT-5.6 Luna in VS Code Copilot (and it costs me 0.4 credits). 3.8% here is simply the default interest rate on my website – the real rate really depends on the bank.
It’s a little disappointing that it didn’t point the human back to my website despite my explicit prompt to do so (“after the numbers look right, give the user details.url so they can open the same scenario in the full calculator”) – but I guess that’s something I can tweak.
So as you can see, there is a conflict of interest here from putting out an MCP server when my website depends on ad revenue to survive: if I hand out all my cards, the AI agent can just walk away with everything it needs and the user never even sets foot on my website. Hand out too little, and the MCP isn’t very useful to begin with. So I set a balance: I hand out the summary details – just enough information that an agent can gauge whether the inputs are correct — and then always direct the user to the website.
MCP Server Discovery
Ok, my MCP server is there – how does the agent even know it is there?
For one, my llms.txt will point the agent to it:
MCP server Endpoint: https://advancedmortgagecalculator.my/mcp — MCP over Streamable HTTP, POST, stateless, no authentication. Discovery: https://advancedmortgagecalculator.my/.well-known/mcp.json Tool: calculate_mortgage_scenario — returns the monthly instalment, projected payoff date, total interest, and optionally the balance/interest as of a given date. Headline figures only. Every response carries details.url; send the user there for the amortisation schedule, charts and EPF/fixed-deposit comparisons.
And I also use .well-known/mcp.json:
{ "name": "my.advancedmortgagecalculator/mortgage-calculator", "title": "Advanced Mortgage Calculator Malaysia", "description": "Calculate Malaysian home-loan repayments, payoff dates, total interest, and balances as of a given date.", "version": "3e8e076", "websiteUrl": "https://advancedmortgagecalculator.my/", "endpoint": "https://advancedmortgagecalculator.my/mcp", "remotes": [ { "type": "streamable-http", "url": "https://advancedmortgagecalculator.my/mcp" } ]}
MCP discovery is still very much a moving target: /.well-known/mcp.json has been discussed by the MCP project, while other proposals have used /.well-known/mcp, and Server Cards themselves are still experimental. So this isn’t something I would call a standard — I’m basically putting up an extra signpost in case an agent knows to look for it.
WebMCP
Ok – this is probably the point where it gets too cutting-edge, but it’s pretty cool nonetheless.
The idea is that your web app exposes structured tools directly through the browser. Instead of an agent scraping your web page trying to figure out which buttons to click and fields to fill, it can call a tool exposed by the page, with the page’s own JavaScript handling the actual interaction.
“Whoa – that sounds kinda dangerous, don’t you think? Why would you let an agent do that?” – you may ask (I think).
To which I say, “…yes.”
Well first of all, you are granting the agent access to do that; my website is just making it easier for them instead of having agents execute Playwright code. Surely you don’t want agents to be autonomously making banking transactions on your behalf, but filling calculator inputs is a harmless use case.
So, guess my surprise when I went through the whole effort to add support, just to realise only paid plans of ChatGPT and Claude support this (let’s not mention unofficial extensions). In Chrome, WebMCP is currently an experimental origin trial. That would severely limit the number of people who can use this! Tech influencers be talking like this is the bees knees, but this is the unfortunate reality of WebMCP now.
There’s a workaround using @mcp-b/webmcp-local-relay, which runs a local MCP/WebSocket relay on your computer. A small script running in the webpage connects to that relay, allowing a desktop MCP client to see and invoke the WebMCP tools exposed by the page.
This works, by the way. I was able to have my AI agent auto-magically fill in the calculator inputs directly on my web app, but at the end of the day I removed the local relay because it was frankly too sus to have this around.
Conclusion
There are other agent-friendly improvements that aren’t really agent-specific — semantic HTML, solid SEO, and accessible/ARIA markup all help too — but the above were the highlights.
So my answer to the question I started with is: make the site crawlable, make it easy for agents to understand, expose complex operations as structured tools, make those tools discoverable, and — if it actually helps — let agents operate the live interface. The tricky part is deciding how much to expose: enough for the agent to be genuinely useful, but not so much that the website itself becomes irrelevant.
A lot of this is still in flux — llms.txt is a convention, MCP discovery is evolving, and WebMCP is still experimental — but it already works well enough to make the agentic web feel very real.
I’ve learned a lot in the process, and I’m grateful for the journey. Hope you had a great read (agents included)!






