
slines mcp
一个简单的MCP服务器,提供网站抓取功能。
Repository Info
About This Server
一个简单的MCP服务器,提供网站抓取功能。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
A simple MCP server that exposes a website fetching tool.
Usage
Start the server using either stdio (default) or SSE transport:
# Using stdio transport (default)
uv run slines_mcp
# Using SSE transport on custom port
uv run slines_mcp --transport sse --port 8000
The server exposes a tool named "fetch" that accepts one required argument:
url: The URL of the website to fetch
Example
Using the MCP client, you can use the tool like this using the STDIO transport:
import asyncio
from mcp.client.session import ClientSession
from mcp.client.stdio import StdioServerParameters, stdio_client
async def main():
async with stdio_client(
StdioServerParameters(command="uv", args=["run", "slines_mcp"])
) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# List available tools
tools = await session.list_tools()
print(tools)
# Call the fetch tool
result = await session.call_tool("fetch", {"url": "https://example.com"})
print(result)
asyncio.run(main())
Quick Start
Clone the repository
git clone https://github.com/marmotcai/slines-mcpInstall dependencies
cd slines-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.