- Home
- MCP servers
- Splunk Enterprise Security API Reference
Splunk Enterprise Security API Reference
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"rigzindorje-splunk-enterprise-security-api-reference": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "{...}",
"SECURITY": "{\"apiKey\":\"YOUR_API_KEY\"}",
"CONFIG_PATH": "mcp_server/mcp_config.json"
}
}
}
}You run an MCP server that exposes the Gmail API OpenAPI specification to MCP clients. This lets clients interact with the Gmail API through a modeled, context-aware protocol server, enabling you to integrate Gmail functionality into your MCP-enabled tooling with structured, consistent requests and responses.
How to use
Start the MCP server in stdio mode to run locally and interact with clients that use the MCP protocol. You will run a Python-based server that listens for MCP requests and forwards them to the Gmail API OpenAPI surface.
How to install
Prerequisites: you need Python 3.9 or newer, and you should have pip and uv installed.
# Prerequisites
python3 --version
pip --version
uv --version 2>/dev/null || echo "uv not installed; you may install it via pip if needed"
Additional sections
Configuration and runtime details are provided to help you tailor the MCP server to your environment. You can configure the server using a JSON configuration file or environment variables. The server supports multiple transport modes, including stdio, which runs locally and communicates via standard input/output.
Security-related parameters can be supplied through environment variables. You can define keys or tokens that the server uses to authorize or scope access for your MCP clients.
Build and test workflows are supported to verify linting, static analysis, and test coverage as you develop and maintain the server.
If you want to run and test code interactively, you can start the server in stdio mode and pass configuration via environment variables or a config file to ensure the server behaves as expected in your environment.
Configuration details and runtime commands
{
"mcpServers": {
"gmail_mcp": {
"command": "python",
"args": ["mcp_server/main.py", "stdio"]
}
},
"env": {
"CONFIG_PATH": "mcp_server/mcp_config.json",
"CONFIG": "{\"example\":\"value\"}",
"SECURITY": "{\"apiKey\":\"YOUR_API_KEY\"}"
}
}
Running the server with stdio
To start the server in stdio mode, run the following command. It launches the MCP server so you can connect MCP clients that use stdio transport.
python mcp_server/main.py stdio
Environment variables and configuration
Configuring the server can be done via a JSON configuration file or via environment variables. Common variables include CONFIG_PATH to point to a JSON config file, CONFIG to pass a JSON string, and SECURITY to define security-related parameters such as API keys.