MCP API server for h2oGPTe
Project description
H2OGPTe MCP Server
H2OGPTe MCP Server is a Model Context Protocol (MCP) server that prifor the H2OGPTe project. The server is just a local proxy forwarding traffic to REST API endpoints of H2OGPTe executed as commnad.
Installation
From Pypi
pip install h2ogpte-mcp-server
From Github
# Clone git repository
git clone https://github.com/h2oai/h2ogpte-mcp-server.git
# Use the latest release version
git checkout $(git describe --tags)
make setup
make build
# The command will install h2ogpte-mcp-server to the current python environment
make install
Usage
Environment Variables
- H2OGPTE_API_KEY - (required) H2OGPTe access key. See documentation on how to get the key.
- H2OGPTE_SERVER_URL - The url of H2OGPTe server. Default value is https://h2ogpte.genai.h2o.ai.
- H2OGPTE_ALL_ENDPOINTS_AS_TOOLS - A boolean flag, specifing whether all REST API endpoints should be represented as MCP tools. If disabled, GET endpoints will be represented as resources. Default value is
true. - H2OGPTE_ENDPOINT_SET - A set of REST API endpoints that will be used for MCP tools or resources. The default value is
all_without_async_ingest. Possible values:all- All REST API endpoints on the H2OGPTe serverall_without_async_ingest- All endpoints without asynchronous ingestion endpoints. These endpoints start and returns a job. E.g.:create_ingest_upload_jobbasic- A mininal set of endpoints for chatting with collections and ingesting new documents.custom- A set of endpoints defined by the user. If chossen, theH2OGPTE_CUSTOM_ENDPOINT_SET_FILEvariable must be set.
- H2OGPTE_CUSTOM_ENDPOINT_SET_FILE - A path to file with the list of REST API endpoints. Each endpoint name must be an a separate line. The name of the endpoint is the
operationIdattribute in REST API spec file (e.g.: https://h2ogpte.genai.h2o.ai/api-spec.yaml)
Example Configuration
An example MCP server configuration for MCP clients. E.g.: Cursor, Claude Desktop
{
"mcpServers": {
"h2ogpte-mcp-server": {
"command": "h2ogpte-mcp-server",
"env": {
"H2OGPTE_API_KEY": "sk-...",
"H2OGPTE_SERVER_URL": "https://h2ogpte.genai.h2o.ai",
"H2OGPTE_ALL_ENDPOINTS_AS_TOOLS": "true"
}
}
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 h2ogpte_mcp_server-0.1.3-py3-none-any.whl.
File metadata
- Download URL: h2ogpte_mcp_server-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a33760037732864fa8eb6f4da8f55b7d00576b23ba278fde3fe99bd1ba1cf73
|
|
| MD5 |
c37e08cd5ff9cc5616487931634bb423
|
|
| BLAKE2b-256 |
cb4b100b74e830d51be179b3cd55d45734eddff8714f4434893902c474baf2a1
|