======================== CODE SNIPPETS ======================== TITLE: Start Python MCP Server with uvx DESCRIPTION: Shows how to install and start a Python-based MCP server using uvx, a package manager for Python. It's recommended for ease of use and setup. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_430 LANGUAGE: shell CODE: ``` # Install uv/uvx if not already installed (refer to documentation for instructions) # Example: uvx mcp-server-git # Command to start the Git server uvx mcp-server-git ``` ---------------------------------------- TITLE: NPX Configuration for MCP Filesystem Server DESCRIPTION: Illustrates how to configure and run the MCP filesystem server using NPX. This example shows the command and arguments needed to start the server and expose local directories. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md#_snippet_8 LANGUAGE: json CODE: ``` { "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop", "/path/to/other/allowed/dir" ] } } } ``` ---------------------------------------- TITLE: Start Python MCP Server with pip DESCRIPTION: Illustrates how to install and run a Python-based MCP server using pip and the Python module execution. This method is a standard Python package management approach. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_431 LANGUAGE: shell CODE: ``` # Install pip if not already installed (refer to documentation for instructions) # Install the server package pip install mcp-server-git # Run the server module python -m mcp_server_git ``` ---------------------------------------- TITLE: Install mcp-server-git with uvx DESCRIPTION: This snippet demonstrates how to install and run mcp-server-git using uvx, a tool for executing Python applications directly without explicit installation. This is the recommended installation method. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/git/README.md#_snippet_1 LANGUAGE: bash CODE: ``` # Using uvx to directly run mcp-server-git # No specific installation needed beforehand. # Example: uvx mcp-server-git --help ``` ---------------------------------------- TITLE: Run Server from Source (SSE/Streamable HTTP) DESCRIPTION: Instructions for running the Model Context Protocol server from its source code. This involves navigating to the source directory, installing dependencies, and starting the server with either the SSE or Streamable HTTP transport. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_17 LANGUAGE: shell CODE: ``` cd src/everything npm install npm run start:sse ``` LANGUAGE: shell CODE: ``` cd src/everything npm install npm run start:streamableHttp ``` ---------------------------------------- TITLE: Start Typescript MCP Server DESCRIPTION: Demonstrates how to start a Typescript-based MCP server using npx. This command downloads and executes the specified server package. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_429 LANGUAGE: shell CODE: ``` npx -y @modelcontextprotocol/server-memory ``` ---------------------------------------- TITLE: MCP Installer: Install Other MCP Servers DESCRIPTION: A server dedicated to installing other MCP servers. It simplifies the deployment and setup process for various MCP server components. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_249 LANGUAGE: description CODE: ``` Installs other MCP servers, streamlining deployment. ``` ---------------------------------------- TITLE: IBM wxflows MCP Example DESCRIPTION: An example of using the IBM wxflows tool platform to build, test, and deploy tools for any data source. This snippet demonstrates a JavaScript implementation. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_32 LANGUAGE: javascript CODE: ``` console.log('IBM wxflows MCP Example: Initializing...'); // Placeholder for wxflows tool integration logic function executeTool(toolName, params) { console.log(`Executing tool: ${toolName} with params:`, params); // In a real scenario, this would call the wxflows runtime return { success: true, result: 'Tool executed successfully' }; } // Example usage: const toolResult = executeTool('dataFetcher', { source: 'database', query: 'SELECT * FROM users' }); console.log('Tool execution result:', toolResult); ``` ---------------------------------------- TITLE: Cursor MCP Installer DESCRIPTION: A tool to easily install and configure other MCP servers within the Cursor IDE. It supports installation from npm packages, local directories, and Git repositories. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_144 LANGUAGE: text CODE: ``` Project: Cursor MCP Installer Description: A tool to easily install and configure other MCP servers within Cursor IDE, with support for npm packages, local directories, and Git repositories. ``` ---------------------------------------- TITLE: Install Server Package (NPM) DESCRIPTION: Installs the Model Context Protocol server package globally using npm. This makes the server executable available on your system for direct use via npx or command line. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_16 LANGUAGE: shell CODE: ``` npm install -g @modelcontextprotocol/server-everything@latest ``` ---------------------------------------- TITLE: Additional MCP Client Configurations DESCRIPTION: Provides further examples of configuring Claude Desktop as an MCP client with various servers, including filesystem, git, github, and postgres. It shows how to pass arguments and environment variables. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_433 LANGUAGE: json CODE: ``` { "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"] }, "git": { "command": "uvx", "args": ["mcp-server-git", "--repository", "path/to/git/repo"] }, "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "" } }, "postgres": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"] } } } ``` ---------------------------------------- TITLE: Start Filesystem MCP Server with Directories DESCRIPTION: Starts the Node.js MCP server, specifying allowed directories via command-line arguments. These directories are used for filesystem operations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md#_snippet_0 LANGUAGE: bash CODE: ``` mcp-server-filesystem /path/to/dir1 /path/to/dir2 ``` ---------------------------------------- TITLE: Debugging MCP Server Fetch DESCRIPTION: Commands to debug the MCP server fetch functionality using the MCP inspector. Supports both uvx installations and local development setups. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_7 LANGUAGE: shell CODE: ``` npx @modelcontextprotocol/inspector uvx mcp-server-fetch ``` LANGUAGE: shell CODE: ``` cd path/to/servers/src/fetch npx @modelcontextprotocol/inspector uv run mcp-server-fetch ``` ---------------------------------------- TITLE: Debug mcp-server-fetch with MCP Inspector (uvx Installation) DESCRIPTION: Provides the command-line instruction to initiate debugging for the `mcp-server-fetch` component when it is installed via `uvx`. This command utilizes the `@modelcontextprotocol/inspector` to connect and inspect the running server. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_8 LANGUAGE: shell CODE: ``` npx @modelcontextprotocol/inspector uvx mcp-server-fetch ``` ---------------------------------------- TITLE: Install mcp-server-fetch with Pip DESCRIPTION: Installs the mcp-server-fetch package using pip, enabling the server to be run as a Python module. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_1 LANGUAGE: bash CODE: ``` pip install mcp-server-fetch ``` ---------------------------------------- TITLE: Install mcp-server-git with pip DESCRIPTION: This snippet shows the traditional method of installing mcp-server-git using pip. After installation, the server can be run as a Python module. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/git/README.md#_snippet_2 LANGUAGE: bash CODE: ``` pip install mcp-server-git # After installation, run as a script: python -m mcp_server_git ``` ---------------------------------------- TITLE: Configure Claude.app MCP Servers DESCRIPTION: JSON configurations for setting up the fetch server within Claude.app, specifying the command and arguments for different installation methods like uvx, docker, or pip. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_3 LANGUAGE: json CODE: ``` { "mcpServers": { "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] } } } ``` LANGUAGE: json CODE: ``` { "mcpServers": { "fetch": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/fetch"] } } } ``` LANGUAGE: json CODE: ``` { "mcpServers": { "fetch": { "command": "python", "args": ["-m", "mcp_server_fetch"] } } } ``` ---------------------------------------- TITLE: Debug mcp-server-fetch with MCP Inspector (Local/Development Installation) DESCRIPTION: Outlines the sequence of shell commands required to debug `mcp-server-fetch` when working with a local installation or during development. This process involves navigating to the project's source directory and then running the inspector against the local server instance. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_9 LANGUAGE: shell CODE: ``` cd path/to/servers/src/fetch npx @modelcontextprotocol/inspector uv run mcp-server-fetch ``` ---------------------------------------- TITLE: Docker Configuration for MCP Filesystem Server DESCRIPTION: Provides a JSON configuration example for running the MCP filesystem server using Docker. It demonstrates how to mount local directories to the server's `/projects` path, including read-only mounts. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md#_snippet_7 LANGUAGE: json CODE: ``` { "mcpServers": { "filesystem": { "command": "docker", "args": [ "run", "-i", "--rm", "--mount", "type=bind,src=/Users/username/Desktop,dst=/projects/Desktop", "--mount", "type=bind,src=/path/to/other/allowed/dir,dst=/projects/other/allowed/dir,ro", "--mount", "type=bind,src=/path/to/file.txt,dst=/projects/path/to/file.txt", "mcp/filesystem", "/projects" ] } } } ``` ---------------------------------------- TITLE: mcp-salesforce: Salesforce Integration Example DESCRIPTION: An MCP server providing a basic demonstration of interactions with a Salesforce instance. It allows AI models to perform operations within Salesforce. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_265 LANGUAGE: description CODE: ``` Demonstrates basic interactions with a Salesforce instance. ``` ---------------------------------------- TITLE: Claude Desktop MCP Server Configuration DESCRIPTION: Example JSON configuration for Claude Desktop to connect to the MCP Server Everything using the stdio transport. It specifies the command to run the server package. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_14 LANGUAGE: JSON CODE: ``` { "mcpServers": { "everything": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-everything" ] } } } ``` ---------------------------------------- TITLE: Home Assistant MCP Server (voska) DESCRIPTION: A Docker-ready MCP server for Home Assistant with entity management, domain summaries, and automation support. It offers guided conversations and pre-built container images. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_212 LANGUAGE: Python CODE: ``` import hass_mcp # Example usage (conceptual) # hass_server = hass_mcp.HassMCP() # entity_list = hass_server.list_entities() # hass_server.call_service('light.turn_on', entity_id='light.bedroom_lamp') ``` ---------------------------------------- TITLE: Configure VS Code MCP Servers DESCRIPTION: JSON configurations for integrating the fetch server into VS Code's user settings or workspace configuration, supporting uvx, docker, or pip installations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_4 LANGUAGE: json CODE: ``` { "mcp": { "servers": { "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] } } } } ``` LANGUAGE: json CODE: ``` { "mcp": { "servers": { "fetch": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/fetch"] } } } } ``` ---------------------------------------- TITLE: Debug MCP Server with Inspector (Local Development) DESCRIPTION: Commands to debug the mcp-server-time when installed locally or during development, requiring navigation to the source directory. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_13 LANGUAGE: Bash CODE: ``` cd path/to/servers/src/time npx @modelcontextprotocol/inspector uv run mcp-server-time ``` ---------------------------------------- TITLE: Project Build and Run Commands DESCRIPTION: Provides essential npm commands for building, running, and preparing the MCP "Everything" Server. Includes options for watch mode and SSE transport. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/CLAUDE.md#_snippet_0 LANGUAGE: npm CODE: ``` npm run build ``` LANGUAGE: npm CODE: ``` npm run watch ``` LANGUAGE: npm CODE: ``` npm run start ``` LANGUAGE: npm CODE: ``` npm run start:sse ``` LANGUAGE: npm CODE: ``` npm run prepare ``` ---------------------------------------- TITLE: Debug MCP Server Time with Inspector (Bash) DESCRIPTION: Instructions on how to use the MCP inspector tool to debug the mcp-server-time module. It provides commands for both uvx installations and local development setups. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_11 LANGUAGE: bash CODE: ``` # For uvx installations: npx @modelcontextprotocol/inspector uvx mcp-server-time # For local development: cd path/to/servers/src/time npx @modelcontextprotocol/inspector uv run mcp-server-time ``` ---------------------------------------- TITLE: Install mcp-server-time with PIP DESCRIPTION: Installs the mcp-server-time package using pip. This is an alternative installation method to using uv. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_1 LANGUAGE: bash CODE: ``` pip install mcp-server-time ``` ---------------------------------------- TITLE: Aqara MCP Server DESCRIPTION: Controls Aqara smart home devices, queries their status, and executes scenes. Enables natural language interaction with smart home ecosystems. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_13 LANGUAGE: APIDOC CODE: ``` Aqara: Description: Control and query Aqara smart home devices. Functionality: - Control smart home devices - Query device status - Execute scenes Example Usage: - "Turn on the living room lights." - "What is the temperature in the bedroom?" ``` ---------------------------------------- TITLE: MCP Server for LeetCode Practice DESCRIPTION: Automates the retrieval of problems, solutions, and insights from LeetCode for coding practice and competitions. Facilitates structured learning and performance tracking. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_267 LANGUAGE: Python CODE: ``` class LeetCodeServer: def get_problem(self, problem_id): # ... fetch problem details ... return problem_data def get_solution(self, problem_id, language='python'): # ... fetch solution ... return solution_code ``` ---------------------------------------- TITLE: Run MCP Git Server with UV DESCRIPTION: Launches the MCP Git server using the 'uv' command-line tool. This method specifies the directory containing the mcp-servers source and the target service name 'mcp-server-git' to run. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/git/README.md#_snippet_10 LANGUAGE: json CODE: ``` { "mcpServers": { "git": { "command": "uv", "args": [ "--directory", "//mcp-servers/src/git", "run", "mcp-server-git" ] } } } ``` ---------------------------------------- TITLE: MCP Tool: startElicitation DESCRIPTION: Initiates an elicitation (interaction) within the MCP client. It takes 'color', 'number', and 'pets' as inputs and returns a confirmation summary of the selections. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_8 LANGUAGE: APIDOC CODE: ``` Tool: startElicitation Description: Initiates an elicitation (interaction) within the MCP client. Inputs: - color (string): Favorite color - number (number, 1-100): Favorite number - pets (enum): Favorite pet Returns: Confirmation of the elicitation demo with selection summary. ``` ---------------------------------------- TITLE: Build Docker Image for mcp-server-time DESCRIPTION: Commands to navigate to the source directory and build a Docker image for the mcp-server-time application. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_14 LANGUAGE: Bash CODE: ``` cd src/time docker build -t mcp/time . ``` ---------------------------------------- TITLE: Repository Packing MCP Tool DESCRIPTION: A repository-packing MCP tool with configurable profiles for file inclusion/exclusion patterns and optional prompts. It helps prepare code context for LLMs. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_225 LANGUAGE: Python CODE: ``` Project: llm-context Description: Provides a repo-packing MCP tool with configurable profiles that specify file inclusion/exclusion patterns and optional prompts. URL: https://github.com/cyberchitta/llm-context.py ``` ---------------------------------------- TITLE: Run mcp-server-time with Python DESCRIPTION: Executes the mcp-server-time server as a Python module after installation. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_2 LANGUAGE: bash CODE: ``` python -m mcp_server_time ``` ---------------------------------------- TITLE: ClearML MCP DESCRIPTION: Get comprehensive ML experiment context and analysis directly from ClearML in your AI conversations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_117 LANGUAGE: APIDOC CODE: ``` ClearML MCP: Purpose: Access ML experiment context and analysis from ClearML. Data Access: - ML experiment details. - Model performance metrics. - Configuration parameters. Integration: ClearML platform. Example Queries: - Get experiment details: `get_experiment_details(experiment_id)` - List recent experiments: `list_experiments(project_name)` ``` ---------------------------------------- TITLE: Claude Desktop Configuration - NPX DESCRIPTION: Configuration snippet for setting up the memory server using NPX within Claude Desktop. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md#_snippet_4 LANGUAGE: json CODE: ``` { "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } } ``` ---------------------------------------- TITLE: Observation Structure Example DESCRIPTION: Shows how discrete pieces of information (observations) are structured and attached to specific entities. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md#_snippet_2 LANGUAGE: json CODE: ``` { "entityName": "John_Smith", "observations": [ "Speaks fluent Spanish", "Graduated in 2019", "Prefers morning meetings" ] } ``` ---------------------------------------- TITLE: Cloudinary MCP Server DESCRIPTION: Cloudinary Model Context Protocol Server to upload media to Cloudinary and get back the media link and details. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_119 LANGUAGE: APIDOC CODE: ``` Cloudinary MCP Server: Purpose: Upload media to Cloudinary and retrieve details. Functionality: - Upload media files (images, videos). - Receive media link and associated details. Integration: Cloudinary. Example Operations: - Upload media: `upload_media(file_path, folder)` Returns: { "url": "string", "public_id": "string", "format": "string" } ``` ---------------------------------------- TITLE: Relation Structure Example DESCRIPTION: Illustrates the structure for a relation between two entities, specifying the source, target, and type of relationship. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md#_snippet_1 LANGUAGE: json CODE: ``` { "from": "John_Smith", "to": "Anthropic", "relationType": "works_at" } ``` ---------------------------------------- TITLE: Resource URI Template DESCRIPTION: Demonstrates dynamic URI construction for resources using a template pattern. This allows clients to build resource URIs by substituting placeholders. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/instructions.md#_snippet_0 LANGUAGE: APIDOC CODE: ``` Resource Template: Pattern: test://static/resource/{id} Description: Enables dynamic URI construction for static resources by embedding a resource identifier. Example: For resource ID '123', the URI would be 'test://static/resource/123'. ``` ---------------------------------------- TITLE: Configure Zed MCP Servers DESCRIPTION: JSON configurations for setting up the Time MCP Server within Zed, supporting uvx and pip installations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_4 LANGUAGE: json CODE: ``` "context_servers": [ "mcp-server-time": { "command": "uvx", "args": ["mcp-server-time"] } ] ``` LANGUAGE: json CODE: ``` "context_servers": { "mcp-server-time": { "command": "python", "args": ["-m", "mcp_server_time"] } } ``` ---------------------------------------- TITLE: Entity Structure Example DESCRIPTION: Defines the structure for an entity node in the knowledge graph, including its unique name, type, and associated observations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md#_snippet_0 LANGUAGE: json CODE: ``` { "name": "John_Smith", "entityType": "person", "observations": ["Speaks fluent Spanish"] } ``` ---------------------------------------- TITLE: Claude Desktop MCP Client Configuration (Memory Server) DESCRIPTION: This JSON configuration demonstrates how to set up Claude Desktop as an MCP client to utilize a memory server. It specifies the command and arguments needed to launch the server. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_432 LANGUAGE: json CODE: ``` { "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-memory"] } } } ``` ---------------------------------------- TITLE: Configure Claude.app MCP Servers DESCRIPTION: JSON configurations for setting up the Time MCP Server within Claude.app, supporting uvx, docker, and pip installations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_3 LANGUAGE: json CODE: ``` { "mcpServers": { "time": { "command": "uvx", "args": ["mcp-server-time"] } } } ``` LANGUAGE: json CODE: ``` { "mcpServers": { "time": { "command": "docker", "args": ["run", "-i", "--rm", "-e", "LOCAL_TIMEZONE", "mcp/time"] } } } ``` LANGUAGE: json CODE: ``` { "mcpServers": { "time": { "command": "python", "args": ["-m", "mcp_server_time"] } } } ``` ---------------------------------------- TITLE: Claude Desktop Configuration - Docker DESCRIPTION: Configuration snippet for setting up the memory server using Docker within Claude Desktop. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md#_snippet_3 LANGUAGE: json CODE: ``` { "mcpServers": { "memory": { "command": "docker", "args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"] } } } ``` ---------------------------------------- TITLE: Time MCP Server API DESCRIPTION: Defines the available tools for interacting with the Time MCP Server, including getting current time and converting between timezones. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_0 LANGUAGE: APIDOC CODE: ``` get_current_time Description: Get current time in a specific timezone or system timezone. Required arguments: timezone (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London') convert_time Description: Convert time between timezones. Required arguments: source_timezone (string): Source IANA timezone name time (string): Time in 24-hour format (HH:MM) target_timezone (string): Target IANA timezone name ``` ---------------------------------------- TITLE: Run mcp-server-fetch DESCRIPTION: Executes the mcp-server-fetch server using Python's module execution. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md#_snippet_2 LANGUAGE: bash CODE: ``` python -m mcp_server_fetch ``` ---------------------------------------- TITLE: MCP Tool: add DESCRIPTION: A tool for performing addition. It accepts two number inputs, 'a' and 'b', and returns the sum as text content. Demonstrates basic arithmetic operations within MCP. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_1 LANGUAGE: APIDOC CODE: ``` Tool: add Description: Adds two numbers together Inputs: - a (number): First number - b (number): Second number Returns: Text result of the addition ``` ---------------------------------------- TITLE: MCP Inspector Debugging Commands DESCRIPTION: Use the MCP inspector for debugging MCP servers. Commands vary based on installation method (uvx or local development). SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/git/README.md#_snippet_7 LANGUAGE: shell CODE: ``` npx @modelcontextprotocol/inspector uvx mcp-server-git ``` LANGUAGE: shell CODE: ``` cd path/to/servers/src/git npx @modelcontextprotocol/inspector uv run mcp-server-git ``` ---------------------------------------- TITLE: MCP Server for AI Agent App Store DESCRIPTION: Acts as a central hub for discovering, installing, and monetizing AI capabilities within the MCP ecosystem. It facilitates the management and distribution of AI agents and their functionalities. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_272 LANGUAGE: Python CODE: ``` class MCPFinderServer: def discover_capabilities(self, query): # ... search for AI capabilities ... return found_capabilities def install_capability(self, capability_id): # ... install selected capability ... return installation_status ``` ---------------------------------------- TITLE: Clone Repository DESCRIPTION: Clones the project repository from GitHub to your local machine. This is the first step in setting up your development environment. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/CONTRIBUTING.md#_snippet_0 LANGUAGE: bash CODE: ``` git clone https://github.com/your-username/servers.git ``` ---------------------------------------- TITLE: Node Code Sandbox MCP Server DESCRIPTION: A Node.js MCP server that spins up isolated Docker-based sandboxes for executing JavaScript snippets with on-the-fly npm dependency installation. Ensures secure and isolated code execution. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_300 LANGUAGE: JavaScript CODE: ``` async function executeJavaScriptInSandbox(code: string, dependencies: string[] = []): Promise { // Logic to spin up a Docker sandbox, install dependencies, and run the code return result; } ``` ---------------------------------------- TITLE: MCP Tool: getTinyImage DESCRIPTION: Provides a small test image as a Base64 encoded PNG. This tool requires no inputs and demonstrates the capability to return binary data. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_4 LANGUAGE: APIDOC CODE: ``` Tool: getTinyImage Description: Returns a small test image No inputs required Returns: Base64 encoded PNG image data ``` ---------------------------------------- TITLE: Zed MCP Server Configuration DESCRIPTION: Configure MCP servers for Zed by adding entries to your Zed settings.json. Supports git server integration via uvx or pip installation. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/git/README.md#_snippet_5 LANGUAGE: json CODE: ``` "context_servers": [ "mcp-server-git": { "command": { "path": "uvx", "args": ["mcp-server-git"] } } ], ``` LANGUAGE: json CODE: ``` "context_servers": { "mcp-server-git": { "command": { "path": "python", "args": ["-m", "mcp_server_git"] } } }, ``` ---------------------------------------- TITLE: MCP Resources Description DESCRIPTION: The server provides 100 test resources in plaintext and binary formats. Even resources are plaintext with a specific URI pattern, while odd resources are Base64 encoded binary data. Features include pagination, subscription, templates, and auto-updates. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/everything/README.md#_snippet_9 LANGUAGE: APIDOC CODE: ``` Resources: Total: 100 test resources Formats: - Even numbered resources: Plaintext format, URI: `test://static/resource/{even_number}`, Content: Simple text description - Odd numbered resources: Binary blob format, URI: `test://static/resource/{odd_number}`, Content: Base64 encoded binary data Features: - Supports pagination (10 items per page) - Allows subscribing to resource updates - Demonstrates resource templates - Auto-updates subscribed resources every 5 seconds ``` ---------------------------------------- TITLE: Helm Chart CLI MCP Server DESCRIPTION: A Helm MCP server that bridges AI assistants and the Helm package manager for Kubernetes. It allows AI assistants to execute commands like installing charts and managing repositories. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_208 LANGUAGE: Python CODE: ``` import helm_chart_cli_mcp # Example usage (conceptual) # helm_server = helm_chart_cli_mcp.HelmServer() # helm_server.install_chart(chart='nginx', repo='bitnami', namespace='default') # helm_server.add_repo(name='bitnami', url='https://charts.bitnami.com/bitnami') ``` ---------------------------------------- TITLE: Configure VS Code MCP Servers (User Settings) DESCRIPTION: JSON configurations for setting up the Time MCP Server in VS Code's user settings, supporting uvx and docker installations. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/src/time/README.md#_snippet_5 LANGUAGE: json CODE: ``` { "mcp": { "servers": { "time": { "command": "uvx", "args": ["mcp-server-time"] } } } } ``` LANGUAGE: json CODE: ``` { "mcp": { "servers": { "time": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/time"] } } } } ``` ---------------------------------------- TITLE: Open Strategy Partners Marketing Tools DESCRIPTION: This project contains content editing codes, value maps, and positioning tools specifically for product marketing. It aids in creating effective marketing materials. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_342 LANGUAGE: text CODE: ``` Project: Open Strategy Partners Marketing Tools Description: Content editing codes, value map, and positioning tools for product marketing. Link: https://github.com/open-strategy-partners/osp_marketing_tools ``` ---------------------------------------- TITLE: Home Assistant MCP Server (tevonsb) DESCRIPTION: Allows interaction with Home Assistant, including viewing and controlling lights, switches, sensors, and other entities. This server provides AI control over smart home devices. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_211 LANGUAGE: Python CODE: ``` import homeassistant_mcp # Example usage (conceptual) # hass_server = homeassistant_mcp.HomeAssistantServer(host='http://homeassistant.local:8123', token='YOUR_TOKEN') # lights = hass_server.get_entities(domain='light') # hass_server.turn_on_light(entity_id='light.living_room_light') ``` ---------------------------------------- TITLE: Archbee MCP Server DESCRIPTION: Integrates with Archbee to write and publish documentation, serving as a source for AI-driven answers. Enhances documentation platforms for AI agent interaction. SOURCE: https://github.com/modelcontextprotocol/servers/blob/main/README.md#_snippet_14 LANGUAGE: APIDOC CODE: ``` Archbee: Description: Documentation platform integration for AI answers. Functionality: - Write and publish documentation - Provide AI-driven answers from documentation Example Usage: - "Find information about product X in the documentation." ```