# I turned an Arabic SEO knowledge base into a remote MCP server (no SDK, ~140 lines on Cloudflare Workers)

> Source: <https://dev.to/designermohamedeid/i-turned-an-arabic-seo-knowledge-base-into-a-remote-mcp-server-no-sdk-140-lines-on-cloudflare-1cn5>
> Published: 2026-11-14 19:35:30+00:00

Most SEO advice on the web is in English. If you search in Arabic for why Google Search Console says *"Crawled – currently not indexed"*, you mostly get thin, copied posts.

So I built **[SEO Bank (بنك السيو)](https://seoquestionsbank.com/)**: a free Arabic reference of real SEO problems (on-page, off-page, technical), each with symptoms, the cause, the tools to use, numbered fix steps, WordPress-specific steps and sources.

Then I asked: what if an AI agent could read it directly, instead of guessing? That became a small **remote MCP server** that anyone can plug into Claude, Cursor or VS Code in one line:

```
claude mcp add --transport http seo-bank https://seoquestionsbank.com/mcp
```

This post is about the design decisions, because most of them were about *not* adding things.

The server exposes five read-only tools:

| Tool | Use it when | 
|---|---|
| `search_seo_questions` | You have a problem in words ("pages not indexed", "الصفحات مش بتتفهرس"). Ranked by relevance, paged with `offset` , optional`category` . | 
| `get_seo_question` | You have an id or a page URL and want the full fix as Markdown. | 
| `list_seo_categories` | You want to know what the bank covers. | 
| `get_seo_category` | You want one section's intro, topics and latest questions. | 
| `list_seo_questions` | You want to browse without a keyword, newest first. | 

A typical agent flow is search → read → answer with a citation:

**You:** Why are my pages "Crawled – currently not indexed"? Use seo-bank and cite the source.

**Agent:** calls `search_seo_questions` → gets `crawled-not-indexed` → calls `get_seo_question` → answers with the fix steps and links to `https://seoquestionsbank.com/technical/crawled-not-indexed/`.

The citation part matters to me. The answer comes from a page a human wrote and reviewed, and the user can click through and check it.

The MCP spec's Streamable HTTP transport allows sessions and Server-Sent Events. A read-only knowledge base needs neither:

`POST` is self-contained.`application/json`, never an SSE stream.` GET` returns `405`, which tells clients there is no server-to-client stream.` notifications/initialized`) get a `202` with no body.
That makes the endpoint trivially cacheable and lets it run as one route in the site's existing Cloudflare Worker (the site is built with Astro). Nothing to install, nothing to keep alive.

The official SDKs are great, but for a stateless read-only server the whole protocol surface is a `switch`:

```
switch (msg.method) {
  case 'initialize':     return ok(id, { protocolVersion, capabilities: { tools: {} }, serverInfo, instructions });
  case 'ping':           return ok(id, {});
  case 'tools/list':     return ok(id, { tools: TOOLS });
  case 'tools/call':     return ok(id, await callTool(msg.params.name, msg.params.arguments));
  case 'resources/list': return ok(id, { resources: [] });
  case 'prompts/list':   return ok(id, { prompts: [] });
  default:               return fail(id, -32601, 'Method not found');
}
```

Add JSON-RPC batch support, a size cap on the body, a per-IP rate limit and CORS, and you have a complete server. Fewer dependencies also means a smaller Worker and a faster cold start.

Arabic is hard for naive keyword matching. The same word can be written with different forms of alef (أ إ آ ا), with or without diacritics, and with attached prefixes like "ال" (the) or "بال" (with the).

Before scoring, both the query and the documents are normalised:

Each field has a weight (title > tags > summary > body), and the score is averaged per query word. English terms like `hreflang` or `noindex` stay as they are, since Arabic SEO people use them in English anyway. No vector database was needed for 86 well-structured documents.

I listed the server on [Glama](https://glama.ai/mcp/connectors/com.seoquestionsbank/seo-bank-bnk-alsyw), which grades every tool's definition. My first version scored **16/20**, and the feedback was fair:

`total` and `nextOffset`.` get_seo_category`.` readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. A client can trust it won't change anything.
One trick I recommend: when you rename tools to make them clearer, **keep the old names as aliases** in `tools/call`. I renamed `search_seo_bank` to `search_seo_questions`, and existing configs kept working.

The MCP server is one piece. The same content is also available as:

`/llms.txt``/llms-full.txt`` Accept: text/markdown`),`/.well-known/`.
If an agent can't use MCP, it can still read clean Markdown instead of scraping HTML.

`claude mcp add --transport http seo-bank https://seoquestionsbank.com/mcp`
`https://seoquestionsbank.com/mcp`
`mcp.json`):

```
{
  "mcpServers": {
    "seo-bank": { "type": "http", "url": "https://seoquestionsbank.com/mcp" }
  }
}
```

The docs live at **[github.com/designermohamedeid/seo-bank-mcp](https://github.com/designermohamedeid/seo-bank-mcp)**. The site also has [29 free SEO tools](https://seoquestionsbank.com/free-tools/), including an [AI readiness checker](https://seoquestionsbank.com/free-tools/ai-readiness-checker/) that tells you how ready your own site is for agents.

If you build MCP servers for content sites, I'd love to hear how you handle search and tool descriptions. And if you speak Arabic and work in SEO, tell me which problem the bank is missing.
