
MCP服务器
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"
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_lVshAnJ6
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!

user_Wtf714kq
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!

user_Y46y8k2N
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!

user_b27njrLf
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!

user_iJ2eN2Jz
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!

user_400t7T8w
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!