MCP Filesystem UTF-8 Issues on Windows with German Umlaute
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- node.js, typescript
- Lĩnh vực
- backend, operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách xác định entry point của MCP Filesystem Server tương ứng với dist/index.js và tái hiện trường hợp ghi trên Windows với “Bäcker” hoặc một chuỗi không phải ASCII khác. So sánh các thiết lập mã hóa được báo cáo của stdin, stdout và stderr, sau đó xác minh rằng việc ghi và đọc các ký tự UTF-8 hoạt động trên Windows mà không chuyển chúng thành dấu chấm hỏi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
SOLVED: MCP Filesystem UTF-8 Issues on Windows with German Umlaute
Problem
If you're using the MCP Filesystem Server on Windows and experiencing issues with German umlauts (ä, ö, ü, ß) or other UTF-8 characters being converted to "?" when writing files - this post provides a working solution.
Symptoms:
- Writing "Bäcker" → becomes "B?cker"
- Reading works fine, only writing is affected
- Affects all non-ASCII characters (€, é, ñ, etc.)
Root Cause
The STDIO communication between Claude Desktop and the MCP server doesn't use UTF-8 encoding by default on Windows. The Node.js process needs explicit encoding settings.
Solution
Step 1: Switch from Docker to NPX installation
npm install -g @modelcontextprotocol/server-filesystem
Step 2: Patch the server code
Edit file: %APPDATA%\npm\node_modules\@modelcontextprotocol\server-filesystem\dist\index.js
Add after the imports section:
// UTF-8 Fix for Windows
if (process.platform === 'win32') {
process.stdout.setEncoding('utf8');
process.stderr.setEncoding('utf8');
process.stdin.setEncoding('utf8');
}
Step 3: Update Claude Desktop config
Edit: %APPDATA%\Claude\claude_desktop_config.json
Replace the filesystem server configuration:
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\claude_local",
"C:\\Users\\[YOUR_USERNAME]\\AppData\\Roaming\\Claude"
],
"env": {
"LANG": "de_DE.UTF-8",
"LC_ALL": "de_DE.UTF-8",
"LC_CTYPE": "de_DE.UTF-8"
}
}
Step 4: Restart Claude Desktop
Result
UTF-8 characters now work perfectly: ÄÖÜ äöü ß € ✓
Technical Details
- Tested on Windows 10/11
- Node.js 18+
- MCP SDK v0.6.0
- Solution discovered: June 13, 2025
Full Documentation
Complete documentation with automated patch script available at:
[Link to GitHub Gist or Repository]
Contributing
This fix should ideally be integrated into the official MCP Filesystem Server. I'm planning to submit a PR to the official repository. If you've experienced this issue, please comment to support the PR.
Keywords: MCP, Model Context Protocol, Filesystem Server, UTF-8, Windows, German, Umlaute, Claude Desktop, encoding fix
- Ngôn ngữ chính
- JavaScript
- Star
- 91.2k
- Fork
- 11.8k
- Merge trung bình
- 6 giờ 20 phút
- Pull request đã merge (30 ngày)
- 117
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/servers
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
modelcontextprotocol/servers#5156 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
memory: create_entities, create_relations and add_observations could declare idempotentHint: trueĐang mởenhancement v2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5153 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5134 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/servers#5071 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
git: git_create_branch is marked non-destructive but silently resets an existing packed branchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
modelcontextprotocol/servers#5059 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/servers
Issue tương tự
-
Add: EUROTV NEWSĐang mởchannels:add check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
githubnext/gh-aw-workshop#4638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
openclaw/openclaw-enterprise#2571 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fabriziosalmi/certmate#1247 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[guide] docs/metrics/index.md names retired 'Import reference architectures' workflow as the metrics refresh pathCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/guide documentation hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
cncf/endusers#1537 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày