Provides web search capabilities using Brave's search engine API to retrieve search results and information from the web
Enables web search functionality through DuckDuckGo's search engine to find and retrieve information from across the internet
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
- from PyPI repository
Usage
Start the MCP server:
- from source code:
- after proper installation:
- as described in the pyproject.toml at
project.scripts
, you can run the with the default arguments :
- as described in the pyproject.toml at
- customize the arguments by running like this for example:
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.
search_web_with_brave
An MCP tool that performs web searches using Brave search engine
search_web_with_duckduckgo
An MCP tool that performs web searches using DuckDuckGo
Project Structure
src/tagny_mcp_server/__init__.py
- Main package initializer that exports the versionsrc/tagny_mcp_server/__main__.py
- Entry point that launches the MCP server with command-line argumentssrc/tagny_mcp_server/__version__.py
- Contains the package version stringsrc/tagny_mcp_server/config.py
- Configures the FastMCP server instance with name, instructions, and versionsrc/tagny_mcp_server/web_access/__init__.py
- Package initializer for web access tools that exports URL text fetching functionssrc/tagny_mcp_server/web_access/url_text_fetcher.py
- Implements tools for fetching URL text and extracting links from web pagessrc/tagny_mcp_server/web_access/web_search.py
- Implements Brave and DuckDuckGo search toolspyproject.toml
- Project metadata, dependencies, and build configurationtests/scripts/client.py
- Example client script for testing the servertests/test_web_access_tools.py
- Tests for the web access tools.gitignore
- Git ignore rulesREADME.md
- Project documentationLICENSE
- License informationCHANGELOG.md
- Release notes and version historyCONTRIBUTING.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 parsingfastmcp
- MCP server frameworkrequests
- HTTP requests
Testing
Tests are located in tests/
and can be run with 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:
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:
- Build workflow - runs tests and code quality checks
- Publish to Docker Hub - publishes the Docker image on release
- Publish to PyPI - publishes to PyPI on release
For more information, see .github/workflows.
Running with Docker
You can build and run the Docker container using the provided Dockerfile
. To test locally, you can use act following the instructions at https://nektos.github.io/act/.
This will start the MCP server inside a Docker container, accessible at http://localhost:8000/sse
.
That you can integrate in a mcp.json
file like this:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables web browsing capabilities for locally served LLMs through URL text fetching, link extraction, and web search using Brave and DuckDuckGo engines. Designed to enhance LLMs with real-time web access through the MCP protocol.
Related MCP Servers
- -securityAlicense-qualityEnables integration with DuckDuckGo search capabilities for LLMs, supporting comprehensive web search, regional filtering, result types, and safe browsing with caching and customizable search parameters.Last updated -173TypeScriptMIT License
- AsecurityAlicenseAqualityEnables LLMs to autonomously retrieve and explore web content by fetching pages and recursively following links to a specified depth, particularly useful for learning about topics from documentation.Last updated -17TypeScriptMIT License
- AsecurityAlicenseAqualityProvides web search capabilities through Baidu with content fetching and parsing features, allowing LLMs to search the web and extract webpage content.Last updated -19PythonMIT License
- -securityAlicense-qualityEnhances LLM applications with deep autonomous web research capabilities, delivering higher quality information than standard search tools by exploring and validating numerous trusted sources.Last updated -224PythonMIT License