Skip to main content

slife-mcp

Standalone MCP proxy service — manages persistent connections to external MCP servers and exposes them through a single MCP endpoint.

Quick Start

pip install slife-mcp

# Run — auto-detects mode:
slife-mcp                      # with slife.json5 → HTTP, without → stdio
slife-mcp --port 8888          # HTTP on custom port

How It Works

MCP clients ←→ slife-mcp ←→ external MCP servers (filesystem, search, ...)

slife-mcp maintains persistent connections to external MCP servers. Clients connect to slife-mcp and get access to all tools from all connected servers through a single endpoint.

This supports any MCP-compatible server, including:

  • Pre-built MCP servers — filesystem, web search (Serper, Tavily), fetch, etc.
  • REST API serversanyapi-mcp-server converts OpenAPI specs to MCP tools, making any REST API (GitHub, Jira, GitLab, Slack…) callable as tools.

Configuration

Create slife.json5 in your working directory:

{
  mcp: {
    // wrapper.url — where clients connect to slife-mcp
    wrapper: {
      url: "http://127.0.0.1:9876/mcp",
    },

    // External MCP servers to auto-connect at startup
    servers: {
      filesystem: {
        command: "npx",
        args: ["-y", "@modelcontextprotocol/server-filesystem", "/allowed/path"],
      },
      serper: {
        command: "npx",
        args: ["-y", "serper-search-scrape-mcp-server"],
        env: {
          SERPER_API_KEY: "${SERPER_API_KEY}",
        },
      },
    },
  },
}

Management Tools

Once running, clients can call these tools to manage connections:

Tool Description
mcp_add_server Add and connect to an external MCP server at runtime
mcp_remove_server Disconnect and remove a server
mcp_list_servers List all configured servers with status
mcp_list_tools List all tools from connected servers
mcp_call_tool Call a tool on a connected server
mcp_reload Reconnect to refresh tool lists

Transport Modes

Mode Trigger Use case
HTTP TTY (terminal) Standalone service, shared by multiple clients
stdio Piped stdin Child process, used by slife agent

HTTP mode is auto-detected when run from a terminal with slife.json5 present. stdio mode is used when spawned as a child process.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slife_mcp-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slife_mcp-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file slife_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: slife_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for slife_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fee3a9d8a127b52b4a72fefaafdddd1f36865c3535fdf4c93d942e8864284900
MD5 17ad89d746e240d03e1fb486e0120e98
BLAKE2b-256 24fafab44969fd7203b7180118b927f70fea5a0b2e0e0e28d3cf471d0f958a02

See more details on using hashes here.

File details

Details for the file slife_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: slife_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for slife_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c41da93a77d8640af10d4c1430670fa97c3461b8d7305250a04b77bad3d35d7
MD5 b0e67f6d8fca1c9efac1bed7fdd80f70
BLAKE2b-256 d2aac4b4970958ae200d7f519be10befe5af1d01ad02e087d78f21f1b3b03905

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page