MCP Server

by tcpipuk

3 236 downloads Not rated yet GPL-3.0
GitHub

About

Provides tools to clients over the Model Context Protocol

Details

License
GPL-3.0

Explore

- Search the web via a SearXNG instance
- Access websites and convert content to markdown
- Get raw web content or extract links
- SSE mode for networked client connections
- stdio mode for direct local connections
- Clear error messages and progress feedback

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- SSE_HOST=0.0.0.0
- SSE_PORT=8080

1. Install uv (requires Python 3.13+):

   curl -LsSf https://astral.sh/uv/install.sh | sh
   

> Note: If you already have uv installed, update it with uv self update.

2. Create and activate a virtual environment:

```bash
uv venv
source .venv/bin/activate # Linux/macOS

The server provides two powerful tools that help AI assistants solve real-world problems:

| Tool | What it can do |
| ------------------ | --------------------------------------------------------------------------- |
| Search | Search the web via SearXNG for current information, specific resources, or to perform calculations. |
| Web | Access websites and process their content. Can convert pages to markdown for easy reading, get the raw content, or extract links. |

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server": {
            "mcp-server-tcpipuk": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-tcpipuk": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

Give your AI assistants the power to help you more effectively. This server lets them safely access
websites and search the web - with clear feedback about what's happening and helpful error messages
when things go wrong.

- ๐Ÿ› ๏ธ What tools does this server offer?
- ๐ŸŽ๏ธ How can I run it?
- ๐Ÿ‹ Using Docker (recommended)
- ๐Ÿ’ป Running locally
- ๐Ÿ”Œ How to connect
- ๐Ÿ“š Learn more about MCP
- ๐Ÿ“„ License

๐Ÿ› ๏ธ What tools does this server offer?

The server provides two powerful tools that help AI assistants solve real-world problems:

| Tool | What it can do |
| ------------------ | --------------------------------------------------------------------------- |
| Search | Search the web via SearXNG for current information, specific resources, or to perform calculations. |
| Web | Access websites and process their content. Can convert pages to markdown for easy reading, get the raw content, or extract links. |

๐ŸŽ๏ธ How can I run it?

๐Ÿ‹ Using Docker (recommended)

The server runs in Docker containers to keep things safe and simple. Here's how to get started:

1. Install Docker if you haven't already
2. Create a file called docker-compose.yml with:

``yaml:docker-compose.yml
services:
mcp-server:
environment:
# Required: URL for your SearXNG instance's Search API
- SEARXNG_QUERY_URL=http://searxng:8080
# Optional: Configure network mode (SSE) for LibreChat etc.
- SSE_HOST=0.0.0.0
- SSE_PORT=8080
# Optional: Set a custom User-Agent for web requests
- USER_AGENT=MCP-Server/1.0 (github.com/tcpipuk/mcp-server)
image: ghcr.io/tcpipuk/mcp-server/server:latest
ports: # Only needed if using SSE_HOST/SSE_PORT
- "8080:8080" # Expose port 8080 on host
restart: unless-stopped
stop_grace_period: 1s

# Example SearXNG service (optional, adapt as needed)
# searxng:
# environment:
# - SEARXNG_BASE_URL=http://searxng:8080 # Ensure SearXNG knows its own URL
# image: searxng/searxng:latest
# restart: unless-stopped
# volumes:
# - ./searxng:/etc/searxng:rw


> Important: You must provide the
SEARXNG_QUERY_URL environment variable, pointing to
> the Search API endpoint of your SearXNG instance (usually ending in
/ or /search).
>
> Setting
SSE_HOST and SSE_PORT enables network mode (Server-Sent Events), recommended for
> multi-container setups like LibreChat. If omitted, the server uses standard I/O.

3. Run docker compose up -d to start the server container (and optionally SearXNG).

Most people use this with either:

- Claude Desktop - connects directly via stdio
(omit
SSE_HOST/SSE_PORT in docker-compose.yml).
- LibreChat - connects over the network via SSE.

For LibreChat, add this to your librechat.yaml (assuming SSE_PORT=8080):

yaml:librechat.yaml
mcpServers:
mcp-server:
iconPath: "/path/to/icon.png" # Optional: Custom icon
label: "MCP Web/Search" # Optional: Custom label shown in UI
type: sse
url: http://mcp-server:8080/sse # Adjust host/port if needed

๐Ÿ’ป Running locally

1. Install uv (requires Python 3.13+):

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

> Note: If you already have
uv installed, update it with uv self update.

2. Create and activate a virtual environment:

bash
uv venv
source .venv/bin/activate # Linux/macOS
# or
.venv\Scripts\activate # Windows

3. Install dependencies from the lockfile:

bash
uv sync

4. Set required environment variables:

bash
# Required: URL for your SearXNG instance's Search API
export SEARXNG_QUERY_URL="http://your-searxng-instance.local:8080"
# Optional: Custom User-Agent
export USER_AGENT="CustomAgent/1.0"

5. Run the server:

bash
# For network (SSE) mode (e.g., for LibreChat)
mcp-server --sse-host 0.0.0.0 --sse-port 3001

# For direct stdio mode (e.g., for Claude Desktop)
mcp-server
`

Available arguments:

- --sse-host: SSE listening address (e.g., 0.0.0.0). Enables SSE mode.
-
--sse-port: SSE listening port (e.g., 3001). Enables SSE mode.
-
--user-agent: Custom User-Agent string (overrides USER_AGENT env var).

> Note: If neither --sse-host nor --sse-port are provided (and SSE_HOST/SSE_PORT env
> vars are not set), the server defaults to
stdio mode. The SEARXNG_QUERY_URL` environment
> variable is always required.

๐Ÿ”Œ How to connect

You can connect to the server in two ways:

| Method | What it means | When to use it |
| ------------------------- | ------------------------------------------------------- | ----------------------------------------------- |
| Network connection (SSE) | The server listens on a network port for connections. | Best for LibreChat or other networked clients. |
| Direct connection (stdio) | The server communicates directly via standard input/out. | Useful for local testing or Claude Desktop. |

๐Ÿ“š Learn more about MCP

Here are a few resources to get you started:

- MCP Specification
- MCP Python SDK
- MCP Example Servers

๐Ÿ“„ License

This project is licensed under the GPLv3. See the LICENSE file for full details.

No reviews yet โ€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.