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 mcp-simple-tool
# Using SSE transport on custom port
uv run mcp-simple-tool --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", "mcp-simple-tool"])
) 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())
Metadata
Release files for iflow-mcp_gdcc-semantic-croissant 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_gdcc_semantic_croissant-0.1.1.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_gdcc_semantic_croissant-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / iflow_mcp_gdcc_semantic_croissant-0.1.1.tar.gz
| Download URL | iflow_mcp_gdcc_semantic_croissant-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88164c34ac598b69da8e51155752afa7d28778471ced8fd4e1a5025bef7077e2
|
|
BLAKE2b-256 checksum How to use checksums |
c7ca2ee65a257d900e7b5046469ca99c956689871d2bc476aa6660f623d1be26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_gdcc_semantic_croissant-0.1.1-py3-none-any.whl
| Download URL | iflow_mcp_gdcc_semantic_croissant-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9935b8324dd4360138a4ac42df0fcb5111a0ee41b62c152f3c011af662a4a1e2
|
|
BLAKE2b-256 checksum How to use checksums |
61f04931a289487fa45674c5cf135af1ea4149f68338c828f56775c0318efaae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|