smithery-ai-cookbook-python-quickstart
A simple MCP server built with FastMCP and python
可用工具 (5 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
tavily_search 14 个参数 需填 1 项
Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.
必填参数:query
tavily_extract 6 个参数 需填 1 项
Extract content from URLs. Returns raw page content in markdown or text format.
必填参数:urls
tavily_crawl 11 个参数 需填 1 项
Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.
必填参数:url
tavily_map 8 个参数 需填 1 项
Map a website's structure. Returns a list of URLs found starting from the base URL.
必填参数:url
tavily_research 2 个参数 需填 1 项
Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.
必填参数:input
服务介绍
Smithery Cookbook
The Smithery Cookbook provides code examples and guides designed to help developers build MCP (Model Context Protocol) servers and clients, offering copy-able code snippets that you can easily integrate into your own projects.
# Prerequisites
To make the most of the examples in this cookbook, you'll need:
- Smithery CLI: Install with
npm install -g @smithery/clito access the interactive playground and development tools - Programming language runtimes for the examples you want to explore (Python 3.12+, Node.js 18+, etc.)
- Basic understanding of the Model Context Protocol (MCP)
# Quick Start
-
Clone this repository:
git clone https://github.com/smithery-ai/smithery-cookbook.git cd smithery-cookbook -
Choose an example and follow its README:
cd servers/python/quickstart # Follow the README.md instructions -
Test with Smithery Playground:
npx @smithery/cli playground - -port 8081Note: Replace
8081with the port your server is running on -
Deploy to Smithery (optional):
Ready to share your MCP server? Deploy it here to host it on Smithery's platform.
# Table of Recipes
# # Python Servers
- FastMCP Quickstart - Basic server with greeting tool
- FastMCP Advanced - Server with session configuration
- Migrate STDIO to HTTP - Server with custom Docker container
# # TypeScript Servers
- TypeScript Quickstart - Simple server with character counting tool
- TypeScript Session Config - Server with session configuration
- Migrate STDIO to HTTP - Smithery CLI - Server using Smithery CLI
- Migrate STDIO to HTTP - Custom Container - Server with custom Docker container
# Development Workflow
Build and distribute your MCP servers with Smithery:
- Build your MCP server using the language and framework of your choice
- Test interactively with
npx @smithery/cli playground - Debug with real-time request/response inspection
- Deploy to Smithery's hosted platform - Deploy here
- Distribute your server gets its own page at
smithery.ai/server/{name}for others to discover and use
# Explore Further
Looking for more resources to enhance your MCP development experience?
- Smithery Documentation - Complete guides and API reference
- Deploy Your MCP Server - Host your server on Smithery's platform
- Model Context Protocol Specification - Official MCP documentation
- Smithery Discord Community - Get help and share your projects
If you have ideas for new examples or guides, share them on the issues page.
# License
MIT License