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.

GitHub License GitHub Actions Workflow PyPI Version Code Quality

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 .

# with dev dependencies
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
uv run -m tagny_mcp_server --help

# see the version
uv run -m tagny_mcp_server --version

# change the default port
uv run -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

  • src/tagny_mcp_server/__init__.py - Main package initializer that exports the version
  • src/tagny_mcp_server/__main__.py - Entry point that launches the MCP server with command-line arguments
  • src/tagny_mcp_server/__version__.py - Contains the package version string
  • src/tagny_mcp_server/config.py - Configures the FastMCP server instance with name, instructions, and version
  • src/tagny_mcp_server/web_access/__init__.py - Package initializer for web access tools that exports URL text fetching functions
  • src/tagny_mcp_server/web_access/url_text_fetcher.py - Implements tools for fetching URL text and extracting links from web pages
  • pyproject.toml - Project metadata, dependencies, and build configuration
  • tests/scripts/client.py - Example client script for testing the server
  • tests/test_web_access_tools.py - Tests for the web access tools
  • .gitignore - Git ignore rules
  • README.md - Project documentation
  • LICENSE - License information
  • CHANGELOG.md - Release notes and version history
  • CONTRIBUTING.md - Guidelines for contributing to the project
  • .pre-commit-config.yaml - Pre-commit hooks configuration
  • .python-version - Python version specification
  • .bumpversion.toml - Configuration for version bumping tool
  • .github/ - GitHub workflow and issue template files

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please read the CONTRIBUTING.md file for details on our code of conduct and the process for submitting pull requests.

Changelog

See CHANGELOG.md for a history of changes to this project.

Code Quality

This project uses pre-commit hooks to maintain code quality. Install them with:

pre-commit install

The following tools are used:

  • black (code formatting)
  • flake8 (linting)
  • isort (import sorting)
  • detect-secrets (secret detection)
  • ruff (linting and fixing)

For more information, see .pre-commit-config.yaml.

CI/CD

This project uses GitHub Actions for continuous integration and deployment:

For more information, see .github/workflows.

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.1.tar.gz (7.8 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tagny_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1fe17bdac80b585b7e768f90461e516dcff92cc23266e0a350947376d4e98eee
MD5 0609feb0ad4295372b13cbda496f4a46
BLAKE2b-256 a79bbe8a3c6cda779477522ec8965096a6b5d9b5f1dc5164e43e00a977fdafba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tagny_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fde9e3492a649e889a6f7595423f30aa92f3d3b62be5421080f18591ded3bcef
MD5 a35fa647394cfc1e2d00979386173e48
BLAKE2b-256 732cf75f2f64b4766477ac7e3ead0c6cfd1ce30bb1f405cd091617456f14fe67

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