Skip to content

AI apps

M8 Server edited this page Nov 20, 2026 · 2 revisions

AI apps

An AI app on the same computer can use your engine for web search. This works with apps that accept MCP servers: many desktop chat apps, editors and local-model front ends do. There are two ways to connect, and both give the same tool:

  • The app starts a command (most desktop apps): see Set it up.
  • The app takes an address (apps that run in a container or in the browser): see By address.

Set it up

  1. Make sure the engine is running (the tray icon on Windows; systemctl --user status logout-search on Linux).

  2. Print the settings block:

    • Windows: "%LOCALAPPDATA%\logout-search\app\logout-search.exe" mcp --print-config
    • Linux: logout-search mcp --print-config

    It prints something like:

    {
     "mcpServers": {
      "logout-search": {
       "command": "/home/you/.local/share/logout-search/app/logout-search",
       "args": ["mcp"]
      }
     }
    }
  3. Paste the logout-search entry into the app's MCP settings and restart the app. A tool named web_search appears.

By address

Start the connector as a small local server:

logout-search mcp --http 8091

Then give the app this address: http://127.0.0.1:8091/mcp (Streamable HTTP). It listens on this computer only, and it refuses a request sent by a web page that is not served from this computer. If your AI app's own page is served from another host name, add --allow-origin that.host.name. There is no password, so think before you make it listen wider with --http 0.0.0.0:8091.

With Docker this server is already running in the container.

What the model gets

For each search: a direct answer when the index has one (a date, a person, a number), a short summary of the main subject, recent news headlines when the query is in the news, and up to 10 pages with title, address and an excerpt of about 300 characters.

What it does not do

  • It does not leave your computer. The app starts the program, and the program asks the engine on 127.0.0.1. If the engine is off, the tool answers "not running". It never sends the search to the public site.
  • It keeps no record of what was searched. Neither this program nor the engine writes a search to disk.
  • It does not fetch pages. The model sees the excerpt the index holds.

Pair it with a page reader

Excerpts answer "who", "when" and "what is". For a question that needs the page itself (a list, a comparison, the details of an article), give the app a page-reading tool as well, for example the standard MCP "fetch" server or the app's own. The model then searches here and opens the one or two pages it needs. Without one, a small model may search again and again for text the excerpts do not hold.

The search stays on your computer. Opening a page contacts that page's site, the same as clicking a result.

Tell the model to stay with the results

A small local model tends to pad a search result with what it remembers, and some of that is wrong. Put this in the app's system prompt (in most apps: settings, then "system prompt" or "custom instructions"):

Answer from the search results and give the address you used. Do not add facts that are not in them; if they do not say it, say so.

In a small trial with a 9 GB local model (two questions, two runs each), every answer without this line added facts that were not in the results, some of them wrong dates; with it, none did, and the answers were shorter. Large hosted models need it less.

Limits

  • The AI app must run on the same computer as the engine. An app that runs inside a container connects by address.
  • Some pages, question-and-answer sites among them, are listed with a title and address but no excerpt.

Trouble

  • "Logout Search is not running on this computer": start the engine and ask again.
  • "still starting": the engine loads its index for a minute or so after start-up.
  • An app that needs an OpenAPI address instead of MCP: the mcpo bridge can stand in front of the command. Version 0.0.20 of it needs older libraries: install it with mcp<2 and fastapi<0.117.
  • A different port: if you start the engine with --port, pass the same --port to mcp --print-config.

Clone this wiki locally