Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

3

Github Forks

0

Github Stars

Teradata MCP Server Template

This code will form the basis for building Teradata MCP servers.

We have provided a base code under the /teradata_mcp_server directory that can be modified for the development of custom tools

Environment Set Up

Step 1 - The environment has been put together assuming you have the uv package installed on your local machine. Installation instructions for uv can be found at https://github.com/astral-sh/uv

Step 2 - Clone the mcp-server repository with

On Windows

mkdir MCP
cd MCP
git clone https://github.com/Teradata/teradata-mcp-server.git
cd teradata-mcp-server
uv sync
source .venv/Scripts/activate

On Mac

mkdir MCP
cd MCP
git clone https://github.com/Teradata/teradata-mcp-server.git
cd teradata-mcp-server
uv sync
source .venv/bin/activate

Step 3 - You need to update the .env file

  • Rename env file to .env

  • The database URI will have the following format teradata://username:password@host:1025/databasename, use a ClearScape Analytics Experience https://www.teradata.com/getting-started/demos/clearscape-analytics

    • the usename needs updating
    • the password needs updating
    • the Teradata host needs updating
    • the databasename needs updating
  • LLM Credentials need to be available for /test/pydanticaiBedrock.py code to work

Testing your server

Step 1 - Start the server, typer the following in your terminal

uv run mcp dev teradata_mcp_server/src/server.py

NOTE: If you are running this on a Windows machine and get npx, npm or node.js errors, install the required node.js software from here: https://github.com/nodists/nodist

Step 2 - Open the MCP Inspector

  • You should open the inspector tool, go to http://127.0.0.1:6274
  • Click on tools
  • Click on list tools
  • Click on list_db
  • Click on run

Test the other tools, each should have a successful outcome

Control+c to stop the server in the terminal

Adding your sever to an Agent

Step 1 - Modify the script to point to where you installed the server, you will need to modify the following line

    td_mcp_server = MCPServerStdio('uv', ["--directory", "/Users/Daniel.Tehan/Code/MCP/teradata-mcp-server/teradata_mcp_server/src", "run", "server.py"])

Step 2 - run the test script, this will create an interactive session with the agent who has access to the MCP server.

From a terminal.

uv run ./test/pydanticaiBedrock.py
  • Ask the agent to list the databases
  • Ask the agent to list the table in a database
  • Ask the agent to show all the objects in a database
  • Ask the agent a question that requires SQL to run against a table
  • Type "quit" to exit.

Adding tools to Visual Studio Code Co-pilot

  • In VS Code, "Show and Run Commands"
  • select "MCP: Add Server"
  • select "Command Stdio"
  • enter "uv" at command to run
  • enter name of the server for the id
  • the settings.json file should open
  • modify the directory path and ensure it is pointing to where you have the server installed
  • add the args so that it looks like:
 "teradata_dataisights_mcp": {
                "type": "stdio",
                "command": "uv",
                "args": [
                    "--directory",
                    "/Users/Daniel.Tehan/Code/MCP/teradata-mcp-server/teradata_mcp_server/src",
                    "run",
                    "server.py"
                ]
            }
  • you can start the server from within the settings.json file or you can "MCP: Start Server"

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

  • paulwing
  • Un repositorio de pruebas creado con el servicio MCP

    Reviews

    3.5 (6)
    Avatar
    user_lVshAnJ6
    2025-04-24

    As a dedicated user of mcp-server from Teradata, I can confidently say this product has transformed our server management. Its robust features and seamless integration with our existing systems make it truly indispensable. Teradata’s commitment to quality and user-friendly design shines through in every aspect. Highly recommend!

    Avatar
    user_Wtf714kq
    2025-04-24

    As a dedicated user of the mcp application, I have found the mcp-server by Teradata to be an exceptional product. Its performance and reliability are unmatched, making it an indispensable tool for managing my server needs. The seamless integration and user-friendly interface have significantly improved my workflow efficiency. Highly recommended for anyone seeking a robust server management solution!

    Avatar
    user_Y46y8k2N
    2025-04-24

    I've been using mcp-server by Teradata extensively and it has significantly improved my server management. The seamless integration and user-friendly interface make it a top-notch choice for any IT professional. Highly recommended!

    Avatar
    user_b27njrLf
    2025-04-24

    As a loyal user of mcp-server by Teradata, I couldn't be more impressed with its performance and reliability. This server solution has significantly streamlined our data management processes while ensuring top-notch security and scalability. The excellent support and comprehensive resources provided by Teradata make it an unbeatable choice for any enterprise. Highly recommended!

    Avatar
    user_iJ2eN2Jz
    2025-04-24

    I have been using the mcp-server by Teradata for a few months now, and it has truly exceeded my expectations. The performance and reliability of the server are top-notch, making it an essential tool for managing my data infrastructure. The setup was straightforward, and the support from Teradata has been outstanding. Highly recommend it!

    Avatar
    user_400t7T8w
    2025-04-24

    I've been using mcp-server by Teradata, and it's been a game-changer for our team. The seamless integration and robust performance have significantly improved our server management capabilities. Highly recommend it to anyone looking for a reliable server solution!