Skip to main content

AI Makerspace: MCP Event

This project is a demonstration of the MCP (Model Context Protocol) server, which utilizes the Tavily API for web search capabilities. The server is designed to run in a standard input/output (stdio) transport mode.

Project Overview

The MCP server is set up to handle web search queries using the Tavily API. It is built with the following key components:

  • TavilyClient: A client for interacting with the Tavily API to perform web searches.

Prerequisites

  • Python 3.13 or higher
  • A valid Tavily API key

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Configure environment variables: Copy the .env.sample to .env and add your Tavily API key:

    TAVILY_API_KEY=your_api_key_here
    

Running the MCP Server

To start the MCP server, you will need to add the following to your MCP Profile in Cursor:

{
    "mcpServers":  {
        "websearch-server": {
            "command" : "uv",
            "args" : ["--directory", "/PATH/TO/REPOSITORY", "run", "server.py"]
        }
    }
}

The server will start and listen for commands via standard input/output.

Usage

The server provides a web_search tool that can be used to search the web for information about a given query. This is achieved by calling the web_search function with the desired query string.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

Metadata

Release files for iflow-mcp_ai-maker-space_aim_mcp_demo 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_ai-maker-space_aim_mcp_demo 0.1.0
File Size Uploaded
iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_ai-maker-space_aim_mcp_demo 0.1.0
File Interpreter ABI Platform
iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0.tar.gz

Download URL iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5bb66f15e6194337c4b72dfa71dc42867e92f3df23c722eba6489d34db0c93bb
BLAKE2b-256 checksum
How to use checksums
cad027a86a2d365fc6cdbece097b9685bd9a483666be1de256b4f39e7bde50cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0-py3-none-any.whl

Download URL iflow_mcp_ai_maker_space_aim_mcp_demo-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f435105a208870c71c04cc434cab343617411a8caee40fe1b66727f8874c10ed
BLAKE2b-256 checksum
How to use checksums
7866451df6e6a1123005b79aba56c51025d80e4c7b981059ec88690dd19190dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page