MCP cover image
See in Github
2025-04-07

构建我的第一个模型上下文协议服务器

1

Github Watches

0

Github Forks

0

Github Stars

IOG Model Context Protocol (MCP) Server

A standalone implementation of the IOG Model Context Protocol (MCP) server that can be integrated with systems like Windsurf.

Features

  • Tool Registry: Includes calculator and search functionality
  • Data Retrieval: Tools for accessing personas and products data
  • Standard MCP Endpoints: For tool discovery and execution
  • JSON Schema Definitions: For all tools and parameters
  • Windsurf Integration: Example code for connecting to Windsurf

Installation

# Clone the repository or copy these files to your project
# Install dependencies
npm install

Usage

Starting the MCP Server

npm start
# or
node iog_mcp_server.js

The server will run on http://localhost:3001 by default.

Available Endpoints

  • GET /mcp/tools: Returns a list of available tools and their definitions
  • POST /mcp/execute: Executes a tool with the provided parameters

Integrating with Windsurf

The windsurf_integration.js file provides a complete example of how to integrate this MCP server with Windsurf:

const WindsurfMCPIntegration = require('./windsurf_integration');

async function main() {
  const integration = new WindsurfMCPIntegration();
  await integration.initialize();
  await integration.registerWithWindsurf();
  
  // Now you can use the tools through Windsurf
}

main();

Data Sources

To use the data retrieval tools, you need to provide data files:

  • personas.json: Information about IOG personas
  • products.json: Basic information about IOG products
  • IOG Products/: Directory containing detailed Markdown files for products

Customizing

You can extend the tool registry in iog_mcp_server.js by adding new tools to the tools object.

License

MIT

相关推荐

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

    Reviews

    2 (1)
    Avatar
    user_VcPfdZo3
    2025-04-17

    I've been using the IOG-MCP-server by ianpilon for several weeks now and am thoroughly impressed. Its seamless integration and robust performance have significantly improved my workflow. The documentation is clear, making setup straightforward. Highly recommend for any MCP application enthusiasts! Check it out here: https://github.com/ianpilon/IOG-MCP-server.