MCP Protocol
Libraries for connecting to MCP servers and authoring MCP tools that can be used by AI agents.
Available Libraries
| Library | Description |
|---|---|
| scriptling.mcp | MCP client for connecting to MCP servers |
| scriptling.mcp.tool | Helper library for authoring MCP tools |
| Writing MCP Tools Guide | Guide for creating MCP tools |
Quick Start
import scriptling.mcp as mcp
# Connect to an MCP server
client = mcp.connect("http://localhost:8080/mcp")
# List available tools
tools = client.list_tools()
# Call a tool
result = client.call_tool("search", {"query": "hello"})Overview
MCP (Model Context Protocol) is a protocol for AI models to interact with external tools and data sources. These libraries provide:
- Client: Connect to MCP servers and use their tools
- Tool Authoring: Create MCP tools that can be exposed to AI agents