MediaWiki MCP Server
AI 에이전트가 MediaWiki를 쓰는 모든 위키, Wikipedia를 포함해서, 페이지를 읽고 검색하고 편집하게 해줍니다.
147 GitHub 스타제작 Professional Wiki라이선스 MIT업데이트 18일 전
설치 방법
이 MCP는 로컬 방식이에요. 내 컴퓨터에서 실행돼요.
PC에 설치한 앱(Claude Desktop, Claude Code, Cursor, VS Code 등)에서 쓸 수 있어요. 앱을 고르세요:
터미널에 붙여 넣기:
claude mcp add mediawiki -- npx -y @professional-wiki/mediawiki-mcp-server
채워야 할 것
| 이름 | 설명 | 필수 |
|---|---|---|
CONFIG | Path to your configuration file | 아니요 |
MCP_ALLOW_STATIC_FALLBACK | Set to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback for unauthenticated requests. | 아니요 |
MCP_CONTENT_MAX_BYTES | Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out. | 아니요 |
MCP_FILE_DATA_MAX_BYTES | Hard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap responses error rather than truncate. | 아니요 |
MCP_LOG_LEVEL | Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. | 아니요 |
MCP_MAX_REQUEST_BODY | Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. | 아니요 |
MCP_METRICS | Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport. | 아니요 |
MCP_OAUTH_ALLOWED_REDIRECTS | Additional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending in /*. Loopback, claude.ai, and verified first-party clients (ChatGPT, Cursor, VS Code) are always allowed; unset means no additional clients. | 아니요 |
MCP_OAUTH_CIMD_ALLOWED_HOSTS | Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted. | 아니요 |
MCP_OAUTH_CREDENTIALS_FILE | Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows. | 아니요 |
MCP_OAUTH_NO_BROWSER | Set to '1' to skip launching a browser during the OAuth dance and log the auth URL to stderr instead. Useful in headless environments and CI. | 아니요 |
MCP_OAUTH_PROXY_STORE_FILE | Path to the hosted OAuth proxy's encrypted state file, which lets sign-ins survive restarts. Default: proxy-store.enc under the mediawiki-mcp config dir; /app/data/proxy-store.enc in the Docker image. | 아니요 |
MCP_PUBLIC_URL | Override the request-derived public URL used in the protected-resource discovery doc and WWW-Authenticate header. Set this when running behind a proxy that rewrites the request Host. | 아니요 |
MCP_SHUTDOWN_GRACE_MS | Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. | 아니요 |
MCP_TRANSPORT | Type of MCP server transport | 아니요 |
MCP_UPLOAD_MAX_BYTES | Memory cap on the server-side fetch used by upload-file-from-url and update-file-from-url. Files larger than this are routed to the wiki's own copy-upload instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize. | 아니요 |
MCP_USER_AGENT | Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/<version> (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email or URL, e.g. 'ExampleBot/1.0 (bot@example.org)'. | 아니요 |
PORT | Port used for StreamableHTTP transport | 아니요 |
준비 끝! 이제 테스트해 보세요
앱을 다시 시작하고 아래 요청 중 하나를 채팅에 붙여 넣으세요:
릴리스 절차에 대한 페이지를 위키에서 검색해 줘.
설치 페이지의 최근 편집 10개를 보여 줘.
무엇인가요
이 서버는 MediaWiki를 쓰는 모든 위키에 AI 에이전트를 연결합니다. 에이전트는 페이지를 검색하고 읽고, 판의 차이를 비교하고, 범주와 파일을 둘러볼 수 있습니다. 로그인하면 만들고, 편집하고, 이동하고, 업로드할 수 있습니다. 여러 위키와 함께 작동하며, NeoWiki, Semantic MediaWiki, Cargo, Bucket, Wikibase를 위한 추가 도구도 있습니다.
할 수 있는 일
search-page: 위키 전문 검색get-page: 페이지 가져오기get-page-history: 최근 판 나열compare-pages: 두 판의 차이 비교get-category-members: 범주의 페이지 나열create-page: 페이지 만들기(로그인 필요)update-page: 페이지 편집(로그인 필요)upload-file: 파일 업로드(로그인 필요)
언제 쓰나요
- ›에이전트가 위키에서 무언가를 찾아보게 하고 싶을 때
- ›위키를 관리하면서 페이지 편집이나 이동을 도움받고 싶을 때
- ›페이지의 두 판을 비교하고 싶을 때
필요한 것
함께 쓰면 좋은 스킬
MCP일까, 스킬일까?
MCP는 에이전트에게 손을 주고, 스킬은 그 손을 제대로 쓰는 법을 알려 줘요. 함께 쓰면 결과가 좋아지고 토큰도 덜 들어요.
자주 묻는 질문
무료인가요?
네. 패키지는 npm에 있고, 문서에 오픈 소스 라이선스 배지가 있습니다.
로그인해야 하나요?
공개 위키를 읽는 데는 필요 없습니다. 자물쇠 표시가 있는 도구는 인증이 필요합니다.
여러 위키와 함께 쓸 수 있나요?
네. 각 도구가 선택적으로 wiki 인자를 받고, 설정 파일에 위키를 나열합니다.
변경을 막을 수 있나요?
네. readOnly를 true로 설정한 위키에서는 쓰기 도구가 거부됩니다.
어떤 확장 기능을 지원하나요?
NeoWiki, Semantic MediaWiki, Bucket, Cargo, Wikibase 도구는 해당 확장 기능이 설치된 위키에만 등록됩니다.
MediaWiki가 만든 것인가요?
아닙니다. Professional Wiki가 만들었습니다.
작동하지 않을 때
- ›비공개 위키를 쓴다면 config.json을 만드세요. 다른 곳에 있다면 CONFIG로 경로를 지정하세요.
- ›브라우저 없는 서버에서 OAuth를 쓰려면 MCP_OAUTH_NO_BROWSER=1을 설정하고 기록된 URL을 여세요.
- ›응답이 잘린다면 MCP_CONTENT_MAX_BYTES를 올리세요.
매주 새 스킬 5개. 읽는 데 1분.