Skip to main content

Overview

The Common Tools MCP Server is a collection of tools that are commonly used by AI applications such as web search, code execution, document extraction, etc. It is managed and deployed by TrueFoundry. It does not appear in the MCP registry and is available to all users of the platform.

Use Common Tools MCP Server in the AI Gateway Playground

You can use the Common Tools MCP Server in the AI Gateway Playground by selecting the Common Tools MCP server from the list of MCP servers. Common Tools MCP Server in the AI Gateway Playground

Programattically connect to Common Tools MCP Server

You can use the Common Tools MCP Server in your own application by libraries that support the MCP protocol. It requires a TrueFoundry API Token to connect to the MCP server.
Replace the placeholders in the example:
  • <controlPlaneURL> with your TrueFoundry control plane URL
  • <tfy-api-token> with your TrueFoundry API token
# pip install fastmcp
from fastmcp import Client
from fastmcp.client.transports import StreamableHttpTransport
import json

token = "<tfy-api-token>" # Replace with your actual TFY API token

async def main():
    url = "https://{controlPlaneURL}/api/llm/mcp/common-tools/server"
    transport = StreamableHttpTransport(
        url=url,
        auth=token,
    )
    async with Client(transport=transport) as client:
        tools = await client.list_tools()
        for tool in tools:
            print(f"Tool: {tool.name}")
            print(f"Description: {tool.description}")
            print(f"Parameters: {tool.inputSchema}")
        print("--------------------------------")
        tool_name = "web_search"
        tool_args = {"query": "What is the capital of France?"}
        results = await client.call_tool(tool_name, tool_args)
        print(f"Result: {results}")
        print("--------------------------------")


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

Control what tools are available to your users

Platform administrators can control what tools are available using Platform > Settings > Common Tools. It can be completely disabled too. Common Tools MCP Server settings