Prerequisites
- .NET 8+ or Python 3.10+
- Node.js 18+
- Agent MCP Studio at agentmcp.studio
Step-by-Step Setup
Start bridge.js
curl -O https://agentmcp.studio/bridge.js && npm install ws node bridge.js wss://agentmcp.studio/api/relay/YOUR-UUID
Open the studio → Settings → MCP Relay Bridge → click Connect.
-
Python: Load MCP tools into a kernel
import asyncio from semantic_kernel import Kernel from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion from semantic_kernel.connectors.mcp import MCPStdioPlugin async def main(): kernel = Kernel() kernel.add_service( OpenAIChatCompletion(ai_model_id="gpt-4o") ) # Load all tools from Agent MCP Studio async with MCPStdioPlugin( name="agent_mcp_studio", command="node", args=["/path/to/bridge.js", "wss://agentmcp.studio/api/relay/YOUR-UUID"] ) as mcp_plugin: kernel.add_plugin(mcp_plugin) result = await kernel.invoke_prompt( "Use the available tools to query the sales database" ) print(result) asyncio.run(main()) -
C# (.NET): Load MCP tools into a kernel
using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.MCP; var builder = Kernel.CreateBuilder(); builder.AddOpenAIChatCompletion("gpt-4o", Environment.GetEnvironmentVariable("OPENAI_API_KEY")!); var kernel = builder.Build(); // Load tools from Agent MCP Studio's relay await using var mcpClient = await McpClientFactory.CreateStdioClientAsync( "agent-mcp-studio", new() { Command = "node", Arguments = ["/path/to/bridge.js", "wss://agentmcp.studio/api/relay/YOUR-UUID"] } ); var plugin = await kernel.ImportPluginFromMcpClientAsync( "AgentMCPStudio", mcpClient ); var result = await kernel.InvokePromptAsync( "Use the available tools to analyse our sales data" ); Console.WriteLine(result);
Frequently Asked Questions
Yes — Microsoft Semantic Kernel (SK) has MCP support in both the Python and C# SDKs. Use MCPSsePlugin or the stdio MCP connector to load Agent MCP Studio tools as SK plugins callable from any kernel function.
In Python: from semantic_kernel.connectors.mcp import MCPStdioPlugin. Create a plugin pointing at bridge.js + relay URL, add it to your Kernel instance, and SK automatically exposes MCP tools as kernel functions.
Yes — Semantic Kernel is built for Azure OpenAI (and OpenAI directly). MCP tools from Agent MCP Studio work with GPT-4o, GPT-4-turbo, and Azure OpenAI deployments via SK's standard function calling pipeline.
Yes — SK planners (Handlebars Planner, Function Calling Stepwise Planner) can select and call MCP tools when planning multi-step tasks. Register MCP tools as plugins and they become candidates for the planner's tool selection.
Both SDK flavors support MCP, but the Python SDK has broader MCP coverage currently. C# SK has MCP support via the Microsoft.SemanticKernel.Connectors.MCP NuGet package. Check the SK GitHub for the latest feature parity status.