Skip to main content

An MCP server with web search, URL text fetching, and more tools to enhance locally served LLMs

Project description

tagny-mcp-server

An MCP server with web search, URL text fetching, and more tools to enhance locally served LLMs.

Features

  • Fetch plain text content from URLs
  • Extract all links from a webpage
  • Designed to work with locally served LLMs via MCP protocol

Installation

  • from source
uv pip install -e .
uv pip install -e ".[dev]"
  • from PyPI repository
pip install tagny-mcp-server

Usage

Start the MCP server:

  • from source code:
uv run -m tagny_mcp_server
  • after proper installation:
    • as described in the pyproject.toml at project.scripts, you can run the with the default arguments :
tagny-mcp-server
  • customize the arguments by running like this for example:
# see the help
python -m tagny_mcp_server --help

# change the default port
python -m tagny_mcp_server --port 5002

The server will run using Server-Sent Events (SSE) transport.

Tools

fetch_url_text

Downloads and parses HTML content from a URL, returning only the visible text.

fetch_page_links

Returns a list of all hyperlinks found on a webpage.

Project Structure

  • main.py - Entry point that launches the MCP server
  • config.py - MCP server configuration
  • web_access/ - Contains web access tools:
    • url_text_fetcher.py - Implements URL text fetching and link extraction
  • pyproject.toml - Project metadata and dependencies
  • scripts/client.py - Example client script for testing the server

Dependencies

  • beautifulsoup4 - HTML parsing
  • fastmcp - MCP server framework
  • requests - HTTP requests

Testing

Tests are located in tests/ and can be run with pytest:

pytest

Example client usage is shown in scripts/client.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tagny_mcp_server-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tagny_mcp_server-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file tagny_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: tagny_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.10

File hashes

Hashes for tagny_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7689c8f04ead58899ed89ca2dff5c08a22cb9ac1b411f7b77d456757fb6e78e0
MD5 ce4291114998992a1c163344ca0eb141
BLAKE2b-256 46a7572cceaa3d9ccfb21cbbf420c6fe1c7703eb586ed41c5c4c90eb08d14a4b

See more details on using hashes here.

File details

Details for the file tagny_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tagny_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6bd3604a0e06d21c1575872c74cf4e797ce8b58b2926777fa7829821936206
MD5 02b614e9c820b4f45555aa1d862a0a57
BLAKE2b-256 50aa84878b4fb2f511042d67b27f70019bdb194fea43e9942b29f3ddb4db3fc7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page