BinktermPHP exposes an MCP endpoint (/mcp) that desktop assistants (Claude, Anything LLM, OpenAI, etc.) can call directly. By default, the MCP server runs on its own port (3740), separate from the main web UI. This document shows how to configure a generic client so it connects using your Bearer token and the mcp-remote helper. Once connected, the client sees the same tools and commands you expose to the web UI.
- An MCP-compatible desktop client installed (Claude Desktop, Anything LLM, OpenAI Desktop, etc.)
- Node.js installed for
npx mcp-remote - A valid Bearer token obtained from your admin dashboard
Each client stores its configuration in a JSON file. Update the file that matches your OS:
| Platform | Configuration path |
|---|---|
| macOS | ~/Library/Application Support/<client>/config.json (replace <client> with your product folder) |
| Windows | %APPDATA%\<Client>\<client>_config.json |
| Linux | ~/.config/<client>/<client>_config.json |
Replace <client> with the actual folder name (Claude, OpenAI, anything-llm, etc.).
Every client defines an mcpServers map. Add an entry with npx mcp-remote that proxies to your BinktermPHP MCP endpoint.
If you are using the default direct MCP listener, point the client at https://your-bbs-hostname:3740/mcp. Only omit :3740 if you placed the MCP server behind a reverse proxy on a different public URL.
{
"mcpServers": {
"my-binktermphp": {
"command": "npx",
"args": [
"mcp-remote",
"https://bbs.example.com:3740/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN"
]
}
}
}Windows shells need cmd /c around npx:
{
"mcpServers": {
"my-binktermphp": {
"command": "cmd",
"args": [
"/c", "npx",
"mcp-remote",
"https://bbs.example.com:3740/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN"
]
}
}
}- Claude Desktop uses
claude_desktop_config.jsonunder%APPDATA%\Claude. - OpenAI Desktop looks for
openai_desktop_config.jsonin%APPDATA%\OpenAI. The JSON structure is identical to the template above. - Anything LLM on Windows stores MCP server definitions in
%APPDATA%\Roaming\anythingllm-desktop\storage\plugins\anythingllm_mcp_servers.json. Add the same server entry there and keep the JSON valid. - You can add multiple entries for different BBS nodes. The label (
my-binktermphp) is arbitrary.
Always append /mcp to your MCP endpoint URL. With the default setup, that means a URL such as https://claudes.lovelybits.org:3740/mcp.
Fully quit the client (use the menu’s Quit command or the system tray) and relaunch it so it reads the new configuration.
- Open a new chat/agent session and confirm your MCP server appears in the tools menu.
- If it does not show up:
- verify the Bearer token is valid and has MCP scope.
- run
npx mcp-remote https://bbs.example.com:3740/mcp --header "Authorization: Bearer YOUR_TOKEN"from a terminal; the command should list your tools. - ensure TLS/DNS routes to your BinktermPHP hostname.
- double-check the JSON file has no trailing commas and balanced braces.
- Some clients support
commandTemplateor environment wrappers. You can setcommand/argsto any executable as long as it ultimately runsnpx mcp-remote. - If you operate more than one MCP server, add each URL+token pair to
mcpServersand let the client pick between them. - Capture
mcp-remoteoutput (Node logs to stdout) to diagnose TLS, token, or redirect issues.
Once configured, any client using this file will join the same realtime tool set as your web users and can reuse the MCP commands you expose.