MCP server to bridge LLM calls via Model Context Protocol
Project description
llms-bridge-mcp
An MCP (Model Context Protocol) server to bridge LLM calls via the Model Context Protocol.
Installation
Using uv:
uv sync
Usage
Run in stdio mode (for MCP clients like Claude Desktop)
uv run stdio
Run in HTTP mode
uv run http --host 0.0.0.0 --port 3011
Run in SSE mode
uv run sse --host 0.0.0.0 --port 3011
Development mode with Smithery
uv run dev
Available Tools
llm_bridge_echo
A simple mock tool that echoes back the input message.
Parameters:
message(str): The message to echo back
Returns:
LLMBridgeResultcontaining the echoed message and its length
Example:
result = await llm_bridge_echo(message="Hello, World!")
Testing
Run tests with pytest:
uv run pytest
Configuration
Set the following environment variables:
LLM_BRIDGE_API_KEY: API key for authentication (optional for mock tool)MCP_HOST: Host to bind to (default: 0.0.0.0)MCP_PORT: Port to bind to (default: 3011)MCP_TRANSPORT: Transport type (default: streamable-http)
Project Structure
llms-bridge-mcp/
├── src/
│ └── llms_bridge_mcp/
│ ├── __init__.py
│ └── server.py
├── tests/
│ └── test_server.py
├── pyproject.toml
└── README.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llms_bridge_mcp-0.1.0.tar.gz.
File metadata
- Download URL: llms_bridge_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8090da81bcc555cb49650b5b3cd2c23d984a287621c4161d0645249175ccb6a6
|
|
| MD5 |
6fd5eb5da98ff3827548b61126a9f351
|
|
| BLAKE2b-256 |
29134404b039030092cd8823f61a41f6826bab07cd385a33facaf4744d030bde
|
File details
Details for the file llms_bridge_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llms_bridge_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03e875e29ed5cdb7f869f06b2b40979d6a7d64920043c9cbb5611c9a36a85a59
|
|
| MD5 |
f0645343203811c9abacbaeed9ce8dc0
|
|
| BLAKE2b-256 |
a4fc08e8ef74b52ad72fe8efc8637f94100f19c540e792eeebc1cfb0169837bd
|