Skip to main content

brillai_mcp

An MCP server providing end-to-end information on recently listed diamonds from Brilliant Earth.

Features

  • Retrieve recent diamond listings of requested shapes (300 each) that have 360° view
  • Access real diamond specifications through the end-to-end product information
  • Get the most valuable and complete data that could exist online
  • Proven to be effective in training ML models for various use cases
  • This server is deployed for education purposes ONLY

Installation and How to Get Started

STEP 1: Create a virtual environment using uv

Create an empty folder and make a new Python project with basic files using init :

uv init

Next, create a virtual environment. Keep the default name preferably

uv venv

STEP 2: Install brillai_mcp

Go to the terminal and paste the following command.

pip install brillai_mcp

or

uv add brillai_mcp

STEP 3: Making changes in the pyproject.toml file

Go to the .toml file in your project folder and change the following lines.

  • Change the requires-python to:
requires-python = ">=3.13,<3.14"
  • Change the dependencies to:
dependencies = [
    "brillai-mcp=={latest_version_here}",
    "mcp<2.0.0",
]

STEP 4: Back to the terminal

In the terminal run the following commands one after the other

uv lock
uv sync

STEP 5: Boilerplate Code

Make a new .py file within the same project folder and paste the following code

from langchain_mcp_adapters.client import MultiServerMCPClient
import asyncio

async def main():

    client = MultiServerMCPClient(

    {
        "brillai_mcp": {
            "transport": "stdio",
            "command": "python",
            "args": ["-m", "brillai_mcp.main"]
        }
    }
    )

    tools = await client.get_tools()
    get_diamonds = tools[0]



    result = await get_diamonds.ainvoke({"shapes": ["round", "heart"], "filename": "first_run.json"})
    print(result)

    

if __name__ == "__main__":
    asyncio.run(main())

This code will create a JSON file within your project that has all the data.

More about the tools

The current version has one tool with the following parameters:

Parameters

Parameter Type Default Description Options
shapes str | list[str] required Diamond shape(s) to search for "oval", "round", "marquise", "emerald-cut", "elongated-cushion", "radiant", "pear", "cushion", "antique", "princess", "asscher", "heart"
filename str "products.json" Output file name for the results Any valid filename ending in .json

Caution

  • The function currently retrieves ~300 diamonds of every shape except for 'antique' as there are few listings for it.
  • The list obtained might contain duplicate entries that could be dealt using data preprocessing techniques
  • Please verify the data type of each column before getting started

Connect with the Author

LinkedIn | Github | Website

Download files

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

Source Distribution

brillai_mcp-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

brillai_mcp-0.1.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file brillai_mcp-0.1.4.tar.gz.

File metadata

  • Download URL: brillai_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brillai_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3475d6d7b92b7f78e259a0bd3cd0ae594e2c9bc60b70240b762e88d47db83b11
MD5 4b6a768ab3bfa96c9ef5eb4d39533430
BLAKE2b-256 1923815915ac9f58544a3576cf3af641f50e5ec11b1aef5f19a49e2290248bfa

See more details on using hashes here.

File details

Details for the file brillai_mcp-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: brillai_mcp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brillai_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4609510d1bdb0d44841777461c051e669a2222bde1959d144a996810a88f7166
MD5 cfccc064905b093ccc4f28f9841e7381
BLAKE2b-256 73dc353eff5ba6d5483db00d0fe252ad4eaf80a7ea1dfda538d558a547f7bdbf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 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